You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2015/08/21 13:29:26 UTC

svn commit: r1696941 - /commons/proper/bcel/trunk/checkstyle.xml

Author: sebb
Date: Fri Aug 21 11:29:26 2015
New Revision: 1696941

URL: http://svn.apache.org/r1696941
Log:
Allow Checkstyle to be suppressed for a single line

Modified:
    commons/proper/bcel/trunk/checkstyle.xml

Modified: commons/proper/bcel/trunk/checkstyle.xml
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/checkstyle.xml?rev=1696941&r1=1696940&r2=1696941&view=diff
==============================================================================
--- commons/proper/bcel/trunk/checkstyle.xml (original)
+++ commons/proper/bcel/trunk/checkstyle.xml Fri Aug 21 11:29:26 2015
@@ -81,6 +81,7 @@ limitations under the License.
         <!-- Allow underscore in class names -->
         <property name="format" value="^[A-Z][A-Za-z0-9]*(_[A-Za-z0-9]+)*$"/>
     </module>
+
     <!-- Checks for imports                              -->
     <!-- See http://checkstyle.sf.net/config_imports.html -->
     <module name="AvoidStarImport"/>
@@ -179,5 +180,14 @@ limitations under the License.
     <property name="file" value="${config_loc}/checkstyle_suppressions.xml"/>
   </module>
 
+  <!-- 
+      Allow comment to suppress checkstyle for a single line
+      e.g. // CHECKSTYLE IGNORE MagicNumber
+   -->
+  <module name="SuppressWithNearbyCommentFilter">
+    <property name="commentFormat" value="CHECKSTYLE IGNORE (\w+)"/>
+    <property name="checkFormat" value="$1"/>
+  </module>
+
 </module>