Skip to content

Commit

Permalink
fix specs2 warns
Browse files Browse the repository at this point in the history
  • Loading branch information
niladic committed Oct 2, 2024
1 parent b3b17ae commit e8bd13d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ scalacOptions ++= Seq(
"-Wconf:src=routes/.*&msg=unused value:s",
// - second one is due to -Wunused:imports with twirl
"-Wconf:src=twirl/.*&msg=unused import:s",
// Silence specs2 warnings from -Wnonunit-statement
"-Wconf:src=aplus/test/.*&msg=unused value:s",
// Sets warnings as errors on the CI
if (insideCI.value) "-Wconf:any:error" else "-Wconf:any:warning",
// Recommended for cats-effect
// https://typelevel.org/cats-effect/docs/getting-started
"-Wnonunit-statement", // TODO: the route warnings needs to be silenced
"-Wunused:imports", // gives non useful warns due to twirl
"-Wnonunit-statement",
"-Wunused:imports",
"-Wunused:privates",
"-Wunused:locals",
// "-Wunused:explicits", // TODO: lot of warnings, enable later
Expand Down

0 comments on commit e8bd13d

Please sign in to comment.