Details
Description
The annotation @SuppressWarnings is supported since v.2.5 but it accepts only the parameter "all" to exclude any violations (see SONAR-1760).
It should accept a list of rule keys to exclude only violations relating to a subset of rules :
@SuppressWarnings("FIRST_RULE", "SECOND_RULE")
Issue Links
- depends upon
-
SONAR-1760
Support the annotation "@SuppressWarnings" at class and method level
-
- is duplicated by
-
SONAR-2755
Support @SuppressWarnings("MY_RULE_KEY") and @SuppressWarnings({"MY_RULE_KEY1","MY_RULE_KEY2})
-
Usually there are many false errors if the analyzed project uses spring, swing gui designers, gwt etc
{"MY_RULE_KEY1","MY_RULE_KEY2}It is absolutely necessary to support @SuppressWarnings("MY_RULE_KEY") and @SuppressWarnings(
)
annotations to be able to disable some specific errors in some places.
It is an absolutely mandatory feature.