diff options
Diffstat (limited to 'config/checkstyle_checks.xml')
-rw-r--r-- | config/checkstyle_checks.xml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/config/checkstyle_checks.xml b/config/checkstyle_checks.xml index c94e8f5c9..1f5dce734 100644 --- a/config/checkstyle_checks.xml +++ b/config/checkstyle_checks.xml @@ -35,6 +35,15 @@ <property name="file" value="${checkstyle.suppressions.file}"/> </module> <module name="SuppressWarningsFilter"/> + <module name="SuppressWithPlainTextCommentFilter"> + <!-- + 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> <!-- Headers --> <module name="Header"> @@ -312,6 +321,9 @@ <property name="offCommentFormat" value="CSOFF\: .*"/> <property name="onCommentFormat" value="CSON\: .*"/> </module> + <module name="SuppressionXpathFilter"> + <property name="file" value="${checkstyle.suppressions-xpath.file}"/> + </module> <module name="SuppressWithNearbyCommentFilter"> <property name="commentFormat" value="-@cs\[(\w{8,}(\|\w{8,})*)\] \w[\(\)\-\.\'\`\,\:\;\w ]{10,}"/> <property name="checkFormat" value="$1"/> |