Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.3
-
Component/s: Checkstyle
-
Labels:None
-
Number of attachments :
Description
This enhancement is a continuation of the work done in SONAR-208.
One of Checkstyle's filters is the SuppressionFilter. This filter offers advantages over the SuppressionCommentFilter by easily enabling suppression of multiple violations without adding comments for each one. For example, it allows you to suppress magic number checks in all test code rather than cluttering the code with all the comment suppressions.
It would be very helpful for Sonar to recognize the same filter.
Issue Links
| This issue relates to: | ||||
| SONAR-280 | Enable CheckStyle SuppressionCommentFilter module |
|
|
|
| SONAR-1328 | Ability to personalize the CheckStyle SuppressionCommentFilter and SuppressWithNearbyCommentFilter modules |
|
|
|
The parameters of the SuppressionCommentFilter could be supported.
E.g. the parameter "OffCommentFormat" could be used to check for "CHECKSTYLE\:OFF.{10,}", that means I use the default tag, but it is mandatory to write a comment behind it, i. e. why you suppressed the check.
Additionally the SuppressWithNearbyCommentFilter with its parameters could be supported.
Filters and parameters see:
http://checkstyle.sourceforge.net/config.html#Filters