Skip to content

Commit

Permalink
Setup silence warnings for imports in scala 3
Browse files Browse the repository at this point in the history
  • Loading branch information
RustedBones committed Oct 21, 2024
1 parent da58bf3 commit a55bcb4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,16 @@ lazy val test = project
"org.scalameta" %% "munit" % munitVersion % Test,
"org.scalameta" %% "munit-scalacheck" % munitScalacheckVersion % Test,
"org.typelevel" %% "cats-core" % catsVersion % Test
)
),
Test / scalacOptions := {
val opts = (Test / scalacOptions).value
// silence warning.
// cat & origin are not valid categories and filter yet
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((3, _)) => opts.filter(_ != "-Wunused:imports")
case _ => opts
}
}
)

lazy val scalacheck = project
Expand Down

0 comments on commit a55bcb4

Please sign in to comment.