@@ -16,6 +16,25 @@ lazy val parserCombinators = crossProject(JVMPlatform, JSPlatform, NativePlatfor
16
16
file -> url(s " http://www.scala-lang.org/api/ ${scalaVersion.value}/ " )
17
17
}.toMap,
18
18
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
+ }),
19
38
Compile / doc / scalacOptions ++= {
20
39
if (isDotty.value)
21
40
Seq (" -language:Scala2" )
0 commit comments