From e8bd13d536fe760f5dd52c02bbd84e04632b6aa4 Mon Sep 17 00:00:00 2001 From: niladic Date: Wed, 2 Oct 2024 15:07:51 +0200 Subject: [PATCH] fix specs2 warns --- build.sbt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index 73d9080e..d5eaaf4c 100644 --- a/build.sbt +++ b/build.sbt @@ -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