Skip to content

SBT plugin that enhances scalafix & scalafmt duo

License

Notifications You must be signed in to change notification settings

alejandrohdezma/sbt-fix

Repository files navigation

SBT plugin that enhances scalafix & scalafmt duo

Installation

Add the following line to your plugins.sbt file:

addSbtPlugin("com.alejandrohdezma" %% "sbt-fix" % "0.7.2")

Usage

This plugin adds a fix command to every project in the build.

This command can be used to launch both scalafmt and scalafix in all supported configurations.

fix

It can also be used for checking that all files have been fixed with both tools, exiting with non-zero code on violations, by appending the --check argument (which can be used in CI to check formatting easily).

fix --check