sds / overcommit

A fully configurable and extendable Git hook manager
MIT License
3.92k stars 281 forks source link

Add `MixFormat` hook #801

Closed reisub closed 1 year ago

reisub commented 1 year ago

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.