Skip to content

Commit

Permalink
ScalaFix support from #1182 (#1203)
Browse files Browse the repository at this point in the history
Co-authored-by: Chick Markley <[email protected]>
  • Loading branch information
ucbjrl and chick authored Jun 8, 2020
1 parent 99ac8a1 commit 5271e89
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .scalafix.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
rules = [
# DisableSyntax
# ExplicitResultTypes
#LeakingImplicitClassVal
RemoveUnused
#NoAutoTupling
#NoValInForComprehension
#ProcedureSyntax
]

6 changes: 5 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ lazy val core = (project in file("core")).
"-unchecked",
"-Xcheckinit",
"-Xlint:infer-any"
// "-Xlint:missing-interpolator"
// , "-Xlint:missing-interpolator"
)
).
dependsOn(macros)
Expand Down Expand Up @@ -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")
2 changes: 2 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 5271e89

Please sign in to comment.