Default (and sane) configurations for Scalafix
Add the following line to your
addSbtPlugin("com.alejandrohdezma" % "sbt-scalafix-defaults" % "0.3.0")
You'll also need to provide the
The included plugin activates automatically. It will add some default dependencies to
scalafixOnCompile & semanticdb by default and create a
.scalafix.conf in your project's root folder with this content.
You can add the
.scalafix.conffile to the repository's
.gitignore, since it's going to be automatically re-created on every build.
Extra configurations can be added to a file named
.scalafix-extra.conf at the root of your repository. The content of this file will be automatically appended to the auto-generated