diff options
Diffstat (limited to 'src/main/scala')
-rw-r--r-- | src/main/scala/xyz.driver.sbt/SbtSettings.scala | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/src/main/scala/xyz.driver.sbt/SbtSettings.scala b/src/main/scala/xyz.driver.sbt/SbtSettings.scala index 2d52f09..c13d764 100644 --- a/src/main/scala/xyz.driver.sbt/SbtSettings.scala +++ b/src/main/scala/xyz.driver.sbt/SbtSettings.scala @@ -83,25 +83,13 @@ object SbtSettings extends AutoPlugin { val scalacLintingSettings = Seq( scalacOptions ++= { - scalaBinaryVersion.value match { - case "2.12" => - Seq( - "-Xfatal-warnings", - "-Xlint:_,-unused,-missing-interpolator", - "-Ywarn-numeric-widen", - "-Ywarn-dead-code", - "-Ywarn-unused:_,-explicits,-implicits" - ) - case _ => - Seq( - "-Xfatal-warnings", - "-Xlint:-missing-interpolator", - "-Ywarn-numeric-widen", - "-Ywarn-dead-code", - "-Ywarn-unused", - "-Ywarn-unused-import" - ) - } + Seq( + "-Xfatal-warnings", + "-Xlint:_,-unused,-missing-interpolator", + "-Ywarn-numeric-widen", + "-Ywarn-dead-code", + "-Ywarn-unused:_,-explicits,-implicits" + ) } ) |