commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1696941 - /commons/proper/bcel/trunk/checkstyle.xml
Date Fri, 21 Aug 2015 11:29:26 GMT
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>
 



Mime
View raw message