Uiar

Formats given source codes of Elixir to follow coding styles below:

Files can be passed by command line arguments:

  mix uiar mix.exs "lib/**/*.{ex,exs}" "test/**/*.{ex,exs}"

If no arguments are passed, they are taken from inputs of .formatter.exs. If --check-formatted option is given, it doesn’t modify files but raises an error if not formatted yet.

Installation

mix.exs

def deps do
  [
    {:uiar, "~> 0.1.0", runtime: false, only: [:dev]}
  ]
end