Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade to Scala 3.3.0 and enable unused warnings #516

Merged
merged 2 commits into from
May 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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