Current section
Files
Jump to
Current section
Files
.formatter.exs
# The `field`/`defenum` parens rules are load-bearing, not cosmetic: without
# them the formatter adds parens to those macro calls, and
# `mix format --check-formatted` is a gate.
#
# Spelled out rather than `import_deps: [:simple_enum, :typedstruct]` because
# both are VENDORED, not depended on (see vendor/README.md): `import_deps`
# resolves `deps/<name>/.formatter.exs` and raises "unknown dependency" for a
# package with no `deps/0` entry. The values below are copied verbatim from each
# package's exported `:locals_without_parens` at the vendored version —
# simple_enum 1.0.0 exports `defenum: 2`, typedstruct 0.5.4 exports
# `field: 2, field: 3, plugin: 1, plugin: 2`. Re-check them when refreshing a
# vendored package.
[
locals_without_parens: [defenum: 2, field: 2, field: 3, plugin: 1, plugin: 2],
inputs: ["{mix,.formatter}.exs", "lib/**/*.{ex,exs}", "test/**/*.{ex,exs}"]
]