Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 19cca8f

Browse files
go (nearly) warning-free on 2.13
1 parent 5453050 commit 19cca8f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

‎build.sbt‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,25 @@ lazy val parserCombinators = crossProject(JVMPlatform, JSPlatform, NativePlatfor
1616
file -> url(s"http://www.scala-lang.org/api/${scalaVersion.value}/")
1717
}.toMap,
1818

19+
// go nearly warning-free, but only on 2.13, it's too hard across all versions
20+
Compile / scalacOptions ++= (CrossVersion.partialVersion(scalaVersion.value) match {
21+
case Some((2, 13)) => Seq("-Werror",
22+
// ideally we'd do something about this. `^?` is the responsible method
23+
"-Wconf:site=scala.util.parsing.combinator.Parsers.*&cat=lint-multiarg-infix:i",
24+
// not sure what resolving this would look like? didn't think about it too hard
25+
"-Wconf:site=scala.util.parsing.combinator.lexical.StdLexical.*&cat=other-match-analysis:i",
26+
)
27+
case _ => Seq()
28+
}),
29+
Compile / doc / scalacOptions ++= (CrossVersion.partialVersion(scalaVersion.value) match {
30+
case Some((2, 13)) => Seq(
31+
// it isn't able to link to [[java.lang.NoSuchMethodError]]
32+
// scala-xml doesn't have this problem, I tried copying their apiMappings stuff
33+
// and that didn't help, I'm mystified why :-/
34+
"""-Wconf:msg=Could not find any member to link for*:i""",
35+
)
36+
case _ => Seq()
37+
}),
1938
Compile / doc / scalacOptions ++= {
2039
if (isDotty.value)
2140
Seq("-language:Scala2")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /