Skip to content

Commit

Permalink
CheckStyle: Enable SuppressWarnings annotation
Browse files Browse the repository at this point in the history
Allow @SuppressWarnings("checkstyle:<CHECK>") to suppress checkstyle violations.
  • Loading branch information
Pieter12345 committed Jun 8, 2018
1 parent 041c0de commit 7fd0a51
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions checkstyle.xml
Expand Up @@ -15,8 +15,14 @@
<property name="optional" value="false"/>
</module>

<!-- Allow "@SuppressWarnings(checkstyle:<CHECK>)" checkstyle violation suppression -->
<module name="SuppressWarningsFilter"/>

<module name="TreeWalker">

<!-- Enable usage of "@SuppressWarnings(checkstyle:<CHECK>)" to suppress checkstyle violations -->
<module name="SuppressWarningsHolder"/>

<!-- Set tabWidth property for checks such as line length -->
<property name="tabWidth" value="4"/>

Expand Down

0 comments on commit 7fd0a51

Please sign in to comment.