aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorrnveach <rveach02@gmail.com>2015-10-30 10:52:49 -0400
committerRoman Ivanov <ivanov-jr@mail.ru>2015-10-30 22:19:51 -0700
commitaa89a8aa52c5fde5ede8599d3d30cea87cd06f95 (patch)
treed2545ce9426c991f6b21dac78be1a01414a9e227 /config
parent9a39d19a31f06c8614d33fcc9c3f7654ec9cdd9f (diff)
downloadcheckstyle-aa89a8aa52c5fde5ede8599d3d30cea87cd06f95.tar.gz
Issue #2268: require all filters appear in checkstyle_checks.xml
Diffstat (limited to 'config')
-rw-r--r--config/checkstyle_checks.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/config/checkstyle_checks.xml b/config/checkstyle_checks.xml
index 2d4e38e50..f58dd9c4e 100644
--- a/config/checkstyle_checks.xml
+++ b/config/checkstyle_checks.xml
@@ -380,4 +380,31 @@
<module name="Translation">
<property name="requiredTranslations" value="de, fr, fi, es, pt, ja, tr"/>
</module>
+ <module name="SuppressWarningsFilter"/>
+ <module name="SeverityMatchFilter">
+ <!--
+ report all violations except ignore
+ -->
+ <property name="severity" value="ignore"/>
+ <property name="acceptOnMatch" value="false"/>
+ </module>
+ <module name="SuppressWithNearbyCommentFilter">
+ <!--
+ Use suppressions.xml for suppressions, this is only example.
+ checkFormat will prevent suppression comments from being valid.
+ -->
+ <property name="checkFormat" value="IGNORETHIS"/>
+ <property name="commentFormat" value="SUPPRESS CHECKSTYLE, (\w+)"/>
+ <property name="messageFormat" value="$1"/>
+ <property name="influenceFormat" value="-1"/>
+ </module>
+ <module name="SuppressionCommentFilter">
+ <!--
+ Use suppressions.xml for suppressions, this is only example.
+ checkFormat will prevent suppression comments from being valid.
+ -->
+ <property name="checkFormat" value="IGNORETHIS"/>
+ <property name="offCommentFormat" value="CSOFF\: .*"/>
+ <property name="onCommentFormat" value="CSON\: .*"/>
+ </module>
</module>