Just wanted to note that adding this flag to scalacOptions caused an error when trying to generate docs (sbt doc). To fix, I have removed this flag from Compile / doc scope in build.sbt like so:
scalacOptions in(Compile, doc) := scalacOptions.value.filterNot(Seq("-P:silencer:checkUnused").contains)
Although perhaps the flag could also only be applied to the Compile / compile scope:
scalacOptions in(Compile, compile) ++= Seq("-P:silencer:checkUnused")
Just wanted to note that adding this flag to
scalacOptionscaused an error when trying to generate docs (sbt doc). To fix, I have removed this flag fromCompile / docscope inbuild.sbtlike so:Although perhaps the flag could also only be applied to the
Compile / compilescope: