Skip to content

Commit 5271e89

Browse files
ucbjrlchick
andauthored
ScalaFix support from #1182 (#1203)
Co-authored-by: Chick Markley <[email protected]>
1 parent 99ac8a1 commit 5271e89

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

.scalafix.conf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
rules = [
2+
# DisableSyntax
3+
# ExplicitResultTypes
4+
#LeakingImplicitClassVal
5+
RemoveUnused
6+
#NoAutoTupling
7+
#NoValInForComprehension
8+
#ProcedureSyntax
9+
]
10+

build.sbt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ lazy val core = (project in file("core")).
140140
"-unchecked",
141141
"-Xcheckinit",
142142
"-Xlint:infer-any"
143-
// "-Xlint:missing-interpolator"
143+
// , "-Xlint:missing-interpolator"
144144
)
145145
).
146146
dependsOn(macros)
@@ -185,3 +185,7 @@ lazy val chisel = (project in file(".")).
185185
}
186186
)
187187
)
188+
189+
addCommandAlias("com", "all compile")
190+
addCommandAlias("lint", "; compile:scalafix --check ; test:scalafix --check")
191+
addCommandAlias("fix", "all compile:scalafix test:scalafix")

project/plugins.sbt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.9.0")
1414

1515
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.3")
1616

17+
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.15")
18+
1719
addSbtPlugin("com.thoughtworks.sbt-api-mappings" % "sbt-api-mappings" % "3.0.0")

0 commit comments

Comments
 (0)