Details
-
Type:
New Feature
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.8
-
Component/s: Exclusions
-
Labels:
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")
Attachments
Issue Links
- depends upon
-
SONAR-1760 Support the annotation "@SuppressWarnings" at class and method level
-
- Closed
-
- is duplicated by
-
SONAR-2755 Support @SuppressWarnings("MY_RULE_KEY") and @SuppressWarnings({"MY_RULE_KEY1","MY_RULE_KEY2})
-
- Closed
-
- is related to
-
SONARJAVA-78 UnusedPrivateMethod should read @SuppressWarnings("unused") metadata
-
- Closed
-