Skip to content

Kpler/scala_hooks

Repository files navigation

Collection of pre-commit hooks for scala

Hooks

  • 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

Alternative

How to upgrade scalafix or scalafmt ?

Download the newer version with coursier then commit the result

cs bootstrap scalafmt -o scalafmt -f
cs bootstrap scalafix -o scalafix -f