Skip to content

Commit

Permalink
Silence spurious lint warning on 2.13
Browse files Browse the repository at this point in the history
  • Loading branch information
gabro committed May 15, 2021
1 parent e777bcc commit 38dbaf9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions sbt-buildo/src/main/scala/buildo/ScalaSettingPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,15 @@ object ScalaSettingPlugin extends AutoPlugin {
case Some((2, 12)) =>
baseScala2Options ++
Seq("-opt-warnings", "-Ypartial-unification", "-Xfuture", "-Ywarn-unused-import")
case Some((2, 13)) => baseScala2Options ++ Seq("-Ymacro-annotations", "-Ywarn-unused:imports")
case Some((3, _)) => baseScala3Options
case _ => Nil
case Some((2, 13)) =>
baseScala2Options ++ Seq(
"-Ymacro-annotations",
"-Ywarn-unused:imports",
// https://github.com/scala/bug/issues/12072
"-Xlint:-byname-implicit",
)
case Some((3, _)) => baseScala3Options
case _ => Nil
}

lazy val baseSettings: Seq[Def.Setting[_]] = Seq(
Expand Down

0 comments on commit 38dbaf9

Please sign in to comment.