mirror of
https://github.com/sbt/sbt.git
synced 2026-10-08 02:53:10 +02:00
mute unused nowarn
This commit is contained in:
@@ -32,7 +32,7 @@ object HouseRulesPlugin extends AutoPlugin {
|
||||
scalacOptions ++= "-Ywarn-unused-import".ifScala2x(v => 11 <= v && v <= 12).value.toList,
|
||||
scalacOptions ++= {
|
||||
scalaPartV.value match {
|
||||
case Some((3, _)) => Seq("-Wunused:imports,implicits,nowarn")
|
||||
case Some((3, _)) => Seq("-Wunused:imports,implicits") // ,nowarn
|
||||
case Some((2, _)) => Seq("-Ywarn-unused:-privates,-locals,-explicits")
|
||||
case _ => Seq.empty
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user