Silencer Versions Save

Scala compiler plugin for warning suppression

v1.7.7

2 years ago

Support for Scala 2.13.7

v1.7.6

2 years ago

Scala 2.12.15 support (thx @dongjoon-hyun)

v1.7.4

2 years ago

Scala 2.13.6 support

v1.7.5

2 years ago

Scala 2.12.14 support

v1.7.0

4 years ago

This release brings partial support for @nowarn annotation introduced in Scala 2.13.2. silencer allows it to be used in Scala 2.11 and 2.12. The annotation itself is provided by scala-collection-compat.

Support for @nowarn is partial because silencer doesn't understand filters which may be specified in an argument to @nowarn. The only filter understood by silencer is msg=<pattern>. All other filters are interpreted as suppressing all warnings.

v1.6.0

4 years ago
  • Disabled searching for @silent annotations in macro expansions, primarily for performance reasons (see #45)
  • Introduced an option to re-enable macro expansion searching: -P:silencer:searchMacroExpansions

v1.5.0

4 years ago
  • Introduced line content based filtering with -P:silencer:lineContentFilters option - particularly useful for suppressing unused import warnings #42
  • Dropped support for Scala 2.11

v1.4.3

4 years ago

Since this version, silencer is fully cross versioned and released for every minor Scala version.

val silencerVersion = "1.4.3"
libraryDependencies ++= Seq(
  compilerPlugin("com.github.ghik" % "silencer-plugin" % silencerVersion cross CrossVersion.full),
  "com.github.ghik" % "silencer-lib" % silencerVersion % Provided cross CrossVersion.full
)

v1.4.0

5 years ago

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 (fixes #28). This can be enabled with the checkUnused flag:

    scalacOptions += "-P:silencer:checkUnused"
    

v1.3.4

5 years ago

This release introduces performance improvement by @retronym