ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject svn commit: r471559 - /ant/core/trunk/src/etc/checkstyle/checkstyle-config
Date Sun, 05 Nov 2006 22:58:38 GMT
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


Mime
View raw message