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+.
This plugin is used to exclude some issues in a fine-grained way. It allows to define some exclusion patterns to switch off issues:
Exclusion patterns can be specified at both global and project levels. Go to Settings > Configuration > General Settings > Switch Off Violations (or at project level: Configuration > Settings > Switch Off Violations) and add exclusion patterns to the following properties:
sonar.switchoffviolations.allfile) to switch off all the issues on files that contain a block of code that matches a given regular expression.
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.
GEN-LAST(like NetBeans auto-generated code):
sonar.switchoffviolations.multicriteria) to switch off issues on specific resources, rules and ranges of lines.
Run an analysis on your project to take into account your configuration.