diff options
| author | Leway Colin | 2019-06-19 05:22:47 +0800 |
|---|---|---|
| committer | Adam Izraelevitz | 2019-06-18 14:22:47 -0700 |
| commit | fb4133cd76600cc8707e9a7b2f639cf120bd825c (patch) | |
| tree | 7532f341dc95f293fa02e4d015d1a6a0fac102ba /build.sbt | |
| parent | d1d422670eb406567b2e34d7036a5cc0262309a1 (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.sbt | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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] = { |
