-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
30 lines (28 loc) · 1.04 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
val projectName = "howto-scalafix-my-code"
inThisBuild(
Seq(
name := projectName,
scalaVersion := "2.13.1",
version := "0.1.0-SNAPSHOT",
scalafixDependencies ++= Seq(
// "com.geirsson" %% "example-scalafix-rule" % "1.3.0",
"com.github.vovapolu" %% "scaluzzi" % "0.1.2" // for rules 'MissingFinal' and 'Disable'
),
publish / skip := true,
scalacOptions ++= Seq(
"-encoding",
"UTF-8", // source files are in UTF-8
"-deprecation", // warn about use of deprecated APIs
"-unchecked", // warn about unchecked type parameters
"-feature", // warn about misused language features
"-Xlint", // enable handy linter warnings
// "-Ypartial-unification", // not supported in scala 2.13.x
"-Ywarn-unused"
// "-Xfatal-warnings", // turn compiler warnings into errors, conflicts with scalafixSemanticdb
),
addCompilerPlugin(scalafixSemanticdb),
scalacOptions += "-Yrangepos"
)
)
addCommandAlias("check", "scalafix --check --stdout")
addCommandAlias("fix", "scalafix")