I’m happy to announce version 1.4.0 of silencer, a Scala compiler plugin for warning suppression.
This version comes with two new features:
-
@silentannotation now accepts an optional message pattern (regex) argument which can be used to suppress specific classes of warnings, e.g.@silent("deprecated") def usesDeprecatedApi(): Unit = someDeprecatedApi() -
The plugin can now be configured to reject (with an error) any redundant
@silentannotations which don’t suppress any warnings. This can be enabled with thecheckUnusedflag:scalacOptions += "-P:silencer:checkUnused"
Cheers!