aboutsummaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorLeway Colin2019-06-19 05:22:47 +0800
committerAdam Izraelevitz2019-06-18 14:22:47 -0700
commitfb4133cd76600cc8707e9a7b2f639cf120bd825c (patch)
tree7532f341dc95f293fa02e4d015d1a6a0fac102ba /build.sbt
parentd1d422670eb406567b2e34d7036a5cc0262309a1 (diff)
Use scalafix to remove unused import and deprecated procedure syntax (#1074)
* Add sbt-scalafix * Add scalafix guide to README * Remove Unused Import * Remove deprecated procedure syntax
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt6
1 files changed, 5 insertions, 1 deletions
diff --git a/build.sbt b/build.sbt
index 90fd4b07..be05bc0b 100644
--- a/build.sbt
+++ b/build.sbt
@@ -28,8 +28,12 @@ def scalacOptionsVersion(scalaVersion: String): Seq[String] = {
}
}
+addCompilerPlugin(scalafixSemanticdb) // enable SemanticDB
+
scalacOptions := scalacOptionsVersion(scalaVersion.value) ++ Seq(
- "-deprecation"
+ "-deprecation",
+ "-Yrangepos", // required by SemanticDB compiler plugin
+ "-Ywarn-unused-import" // required by `RemoveUnused` rule
)
def javacOptionsVersion(scalaVersion: String): Seq[String] = {