Skip to content

Commit

Permalink
Issue checkstyle#11655: allow suppressing Google style warnings with …
Browse files Browse the repository at this point in the history
…annotations and comments
  • Loading branch information
ddcprg committed May 19, 2022
1 parent 74747a2 commit 3c7ce07
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/main/resources/google_checks.xml
Expand Up @@ -16,7 +16,10 @@
Authors: Max Vetrenko, Ruslan Diachenko, Roman Ivanov.
-->

<module name = "Checker">
<module name="Checker">
<!-- IMPORTANT: Allows use of SuppressWarnings annotation -->
<module name="SuppressWarningsFilter"/>

<property name="charset" value="UTF-8"/>

<property name="severity" value="warning"/>
Expand Down Expand Up @@ -47,6 +50,13 @@
</module>

<module name="TreeWalker">
<module name="SuppressWarningsHolder" />
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="CHECKSTYLE.OFF\: ([\w\|]+)" />
<property name="onCommentFormat" value="CHECKSTYLE.ON\: ([\w\|]+)" />
<property name="checkFormat" value="$1" />
</module>

<module name="OuterTypeFilename"/>
<module name="IllegalTokenText">
<property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/>
Expand Down

0 comments on commit 3c7ce07

Please sign in to comment.