Elixir has a built-in formatter that can be run with mix format to format the code and mix format --check-formatted to list out files which aren't formatted.
This was modeled after the credo hook, but in this case we only get the file list in the output to stderr so that's what we display in the error output.
Elixir has a built-in formatter that can be run with
mix format
to format the code andmix format --check-formatted
to list out files which aren't formatted.This was modeled after the credo hook, but in this case we only get the file list in the output to stderr so that's what we display in the error output.