Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.1, 1.2, 1.2.1, 1.3
-
Fix Version/s: 1.9
-
Component/s: Checkstyle, Rules
-
Labels:None
-
Number of attachments :
Description
The CheckStyle SuppressionCommentFilter module should be handled by Sonar, since it allows the developers to suppress some CheckStyle rule violations in the code using a commentary.
For your information, it is always possible to suppress some PMD rule violations in the code using @SuppressWarnings annotation, but for CheckStyle, this functionality does not use annotation but tags in single comment lines, and is not available by default.
With the SuppressionCommentFilter module activated in CheckStyle, the XML file should be generated with:
<module name="Checker"> ... <module name="SuppressionCommentFilter"/> <module name="TreeWalker"> <module name="FileContentsHolder" /> ... </module> </module>
It'll great if we can also setup the properties of this filter.
Issue Links
| This issue is related to: | ||||
| SONAR-208 | Checkstyle suppressions to be managed by sonar |
|
|
|
| SONAR-738 | Honor Checkstyle Suppressions XML Document |
|
|
|
| SONAR-1328 | Ability to personalize the CheckStyle SuppressionCommentFilter and SuppressWithNearbyCommentFilter modules |
|
|
|
What a shame that checkstyle does not manage the standard way used by PMD. This is a recurrent need wanted for sonar (see
SONAR-208). We keep it actively in mind for next releases.SONAR-208). We keep it actively in mind for next releases.