Skip to content

Commit ea70564

Browse files
committed
Enable the use of @SuppressWarnings annotations to suppress CheckStyle violations
1 parent 2391cc0 commit ea70564

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/checkstyle/checkstyle.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,14 @@
1010
<property name="lineSeparator" value="lf"/>
1111
</module>
1212

13+
<!-- Filter out Checkstyle warnings that have been suppressed with the @SuppressWarnings annotation -->
14+
<module name="SuppressWarningsFilter" />
15+
1316
<!-- TreeWalker Checks -->
1417
<module name="com.puppycrawl.tools.checkstyle.TreeWalker">
18+
<!-- Make the @SuppressWarnings annotations available to Checkstyle -->
19+
<module name="SuppressWarningsHolder" />
20+
1521
<!-- Annotations -->
1622
<module name="com.puppycrawl.tools.checkstyle.checks.annotation.AnnotationUseStyleCheck">
1723
<property name="elementStyle" value="compact" />

0 commit comments

Comments
 (0)