Collection of pre-commit hooks for scala
-
scalafmt: Run scalafmt, should be configured with a
.scalafmt.conf
file -
scalafix: Run scalafix, should be configured with a
.scalafix.conf
file, only supports syntactic rules
- pre-commit-scalafmt
- Run scalafmt on compile
Download the newer version with coursier then commit the result
cs bootstrap scalafmt -o scalafmt -f
cs bootstrap scalafix -o scalafix -f