Skip to content

Commit 38dbaf9

Browse files
committedMay 15, 2021
Silence spurious lint warning on 2.13
1 parent e777bcc commit 38dbaf9

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed
 

‎sbt-buildo/src/main/scala/buildo/ScalaSettingPlugin.scala

+9-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,15 @@ object ScalaSettingPlugin extends AutoPlugin {
4242
case Some((2, 12)) =>
4343
baseScala2Options ++
4444
Seq("-opt-warnings", "-Ypartial-unification", "-Xfuture", "-Ywarn-unused-import")
45-
case Some((2, 13)) => baseScala2Options ++ Seq("-Ymacro-annotations", "-Ywarn-unused:imports")
46-
case Some((3, _)) => baseScala3Options
47-
case _ => Nil
45+
case Some((2, 13)) =>
46+
baseScala2Options ++ Seq(
47+
"-Ymacro-annotations",
48+
"-Ywarn-unused:imports",
49+
// https://github.com/scala/bug/issues/12072
50+
"-Xlint:-byname-implicit",
51+
)
52+
case Some((3, _)) => baseScala3Options
53+
case _ => Nil
4854
}
4955

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

0 commit comments

Comments
 (0)
Please sign in to comment.