Browse Source

Add rule to allow in-line suppression of specific

checkstyle rules.
This will allow code that is kept for backward
compatible reasons to be marked in the code, and
ignored in the checkstyle report.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@471559 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 18 years ago
parent
commit
a2d1c00f12
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      src/etc/checkstyle/checkstyle-config

+ 7
- 0
src/etc/checkstyle/checkstyle-config View File

@@ -104,6 +104,13 @@
</module>
<module name="TodoComment"/>
<module name="UpperEll"/>
<!-- allow comment suppression of checks -->
<module name="FileContentsHolder"/>
</module>
<!-- <module name="au.com.redhillconsulting.simian.SimianCheck"/> -->
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="CheckStyle\:([\w\|]+) *OFF"/>
<property name="onCommentFormat" value="CheckStyle\:([\w\|]+) *ON"/>
<property name="checkFormat" value="$1"/>
</module>
</module>

Loading…
Cancel
Save