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 2013/03/19 02:15:02 UTC
svn commit: r1458077 - in /commons/proper/fileupload/trunk/src/checkstyle:
checkstyle-suppressions.xml fileupload_checks.xml
Author: sebb
Date: Tue Mar 19 01:15:01 2013
New Revision: 1458077
URL: http://svn.apache.org/r1458077
Log:
Configure variable line checkstyle suppression comment
Modified:
commons/proper/fileupload/trunk/src/checkstyle/checkstyle-suppressions.xml
commons/proper/fileupload/trunk/src/checkstyle/fileupload_checks.xml
Modified: commons/proper/fileupload/trunk/src/checkstyle/checkstyle-suppressions.xml
URL: http://svn.apache.org/viewvc/commons/proper/fileupload/trunk/src/checkstyle/checkstyle-suppressions.xml?rev=1458077&r1=1458076&r2=1458077&view=diff
==============================================================================
--- commons/proper/fileupload/trunk/src/checkstyle/checkstyle-suppressions.xml (original)
+++ commons/proper/fileupload/trunk/src/checkstyle/checkstyle-suppressions.xml Tue Mar 19 01:15:01 2013
@@ -19,6 +19,5 @@
limitations under the License.
-->
<suppressions>
- <suppress checks="MagicNumber" files="Base64Decoder.java" lines="0-9999"/>
<suppress checks="[a-zA-Z0-9]*" files=".+\.properties" />
</suppressions>
Modified: commons/proper/fileupload/trunk/src/checkstyle/fileupload_checks.xml
URL: http://svn.apache.org/viewvc/commons/proper/fileupload/trunk/src/checkstyle/fileupload_checks.xml?rev=1458077&r1=1458076&r2=1458077&view=diff
==============================================================================
--- commons/proper/fileupload/trunk/src/checkstyle/fileupload_checks.xml (original)
+++ commons/proper/fileupload/trunk/src/checkstyle/fileupload_checks.xml Tue Mar 19 01:15:01 2013
@@ -93,6 +93,12 @@
<!-- Allow comments to suppress checks -->
<module name="SuppressionCommentFilter"/>
+ <module name="SuppressWithNearbyCommentFilter">
+ <property name="commentFormat" value="CHECKSTYLE IGNORE (\w+) FOR NEXT (\d+) LINES?"/>
+ <property name="checkFormat" value="$1"/>
+ <property name="influenceFormat" value="$2"/>
+ </module>
+
<module name="TreeWalker">
<property name="cacheFile" value="${checkstyle.cache.file}"/>