Configure variable line checkstyle suppression comment
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/fileupload/trunk@1458077 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/checkstyle/checkstyle-suppressions.xml b/src/checkstyle/checkstyle-suppressions.xml
index b733d51..28ba446 100644
--- a/src/checkstyle/checkstyle-suppressions.xml
+++ b/src/checkstyle/checkstyle-suppressions.xml
@@ -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>
diff --git a/src/checkstyle/fileupload_checks.xml b/src/checkstyle/fileupload_checks.xml
index d50593c..b49a4f4 100644
--- a/src/checkstyle/fileupload_checks.xml
+++ b/src/checkstyle/fileupload_checks.xml
@@ -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}"/>