Skip to main content

.formatter.exs

[
  inputs: [
    "{mix,.formatter}.exs",
    "{config,lib,test}/**/*.{ex,exs}"
  ],

  # Maximum line length. Credo uses the same value.
  # Elixir standard: 2-space indentation, enforced by formatter.

  # Local functions that should not be wrapped in parens when used without args.
  # Matches functions commonly used without trailing parens in Elixir idioms.
  locals_without_parens: [
    # ExUnit
    assert: 1,
    assert: 2,
    assert_raise: 2,
    assert_raise: 3,
    refute: 1,
    refute: 2,
    setup: 1,
    describe: 2,
    test: 2,
    test: 3,

    # Mix tasks
    import_config: 1
  ]

  # Plugins (uncomment if using heex or surface)
  # plugins: [Phoenix.LiveView.HTMLFormatter]
]