Skip to content

Commit

Permalink
upgrade to Scala 3.3.0 and enable unused warnings (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
SethTisue authored May 27, 2023
1 parent 4d264b5 commit 82d8524
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 5 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ ThisBuild / startYear := Some(2004)

val commonSettings = Seq(
versionScheme := Some("early-semver"),
versionPolicyIntention := Compatibility.BinaryAndSourceCompatible,
crossScalaVersions := Seq("2.13.10", "2.12.17", "3.2.2"),
// change back to BinaryAndSourceCompatible after next minor release;
// the Scala 3.2 -> 3.3 upgrade requires a minor version bump
versionPolicyIntention := Compatibility.BinaryCompatible,
crossScalaVersions := Seq("2.13.10", "2.12.17", "3.3.0"),
scalaVersion := crossScalaVersions.value.head,
)

Expand Down Expand Up @@ -39,6 +41,7 @@ lazy val parserCombinators = crossProject(JVMPlatform, JSPlatform, NativePlatfor
// not sure what resolving this would look like? didn't think about it too hard
"-Wconf:site=scala.util.parsing.combinator.lexical.StdLexical.*&cat=other-match-analysis:i",
)
case Some((3, _)) => Seq("Wunused:all")
case _ => Seq()
}),
Compile / doc / scalacOptions ++= (CrossVersion.partialVersion(scalaVersion.value) match {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package scala.util.parsing.combinator

import java.io.StringReader

import scala.util.parsing.combinator.Parsers
import scala.util.parsing.input.StreamReader

import org.junit.Test
Expand Down

0 comments on commit 82d8524

Please sign in to comment.