diff options
| -rw-r--r-- | .scalafix.conf | 10 | ||||
| -rw-r--r-- | build.sbt | 6 | ||||
| -rw-r--r-- | project/plugins.sbt | 2 |
3 files changed, 17 insertions, 1 deletions
diff --git a/.scalafix.conf b/.scalafix.conf new file mode 100644 index 00000000..3730a03e --- /dev/null +++ b/.scalafix.conf @@ -0,0 +1,10 @@ +rules = [ + # DisableSyntax + # ExplicitResultTypes + #LeakingImplicitClassVal + RemoveUnused + #NoAutoTupling + #NoValInForComprehension + #ProcedureSyntax +] + @@ -140,7 +140,7 @@ lazy val core = (project in file("core")). "-unchecked", "-Xcheckinit", "-Xlint:infer-any" -// "-Xlint:missing-interpolator" +// , "-Xlint:missing-interpolator" ) ). dependsOn(macros) @@ -185,3 +185,7 @@ lazy val chisel = (project in file(".")). } ) ) + +addCommandAlias("com", "all compile") +addCommandAlias("lint", "; compile:scalafix --check ; test:scalafix --check") +addCommandAlias("fix", "all compile:scalafix test:scalafix") diff --git a/project/plugins.sbt b/project/plugins.sbt index 58cf5259..48f031e2 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -14,4 +14,6 @@ addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.9.0") addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.3") +addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.15") + addSbtPlugin("com.thoughtworks.sbt-api-mappings" % "sbt-api-mappings" % "3.0.0") |
