Announcing Silencer 1.4.0

#1

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:

  • @silent annotation 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 @silent annotations which don’t suppress any warnings. This can be enabled with the checkUnused flag:

    scalacOptions += "-P:silencer:checkUnused"
    

Cheers!

5 Likes