You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by pe...@apache.org on 2006/11/05 23:58:38 UTC
svn commit: r471559 - /ant/core/trunk/src/etc/checkstyle/checkstyle-config
Author: peterreilly
Date: Sun Nov 5 14:58:38 2006
New Revision: 471559
URL: http://svn.apache.org/viewvc?view=rev&rev=471559
Log:
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.
Modified:
ant/core/trunk/src/etc/checkstyle/checkstyle-config
Modified: ant/core/trunk/src/etc/checkstyle/checkstyle-config
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/etc/checkstyle/checkstyle-config?view=diff&rev=471559&r1=471558&r2=471559
==============================================================================
--- ant/core/trunk/src/etc/checkstyle/checkstyle-config (original)
+++ ant/core/trunk/src/etc/checkstyle/checkstyle-config Sun Nov 5 14:58:38 2006
@@ -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>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org