Full documentation for SonarQube has moved to a new location: http://docs.sonarqube.org/display/SONAR

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
{iframe:src=http://update.sonarsource.org/plugins/switchoffviolations.html|width=700|height=250|frameborder=0} Your browser does not support iframes. {iframe}
Wiki Markup
Warning
titleDeprecated

The features provided by the Switch Off Violations plugin were added to SonarQube 4.0 and extended. Therefore, this plugin must not be used anymore with SonarQube 4.0+.

Description / Features

This plugin is used to exclude some issues in a fine-grained way. It allows to define some exclusion patterns to switch off issues:

...

  • File exclusion patterns (sonar.switchoffviolations.allfile) to switch off all the issues on files that contains contain a block of code that matches a given regular expression.
    • Example: switch off all the issues on files containing @javax\.annotation\.Generated
  • Bloc exclusion patterns (sonar.switchoffviolations.block) to switch off issues on specific blocks of code. Note: if the first regular expression is found but not the second one, then the plugin considers that the end of the code block is the end of the file.

...