Skip to content

Commit 26c0329

Browse files
committed
Add checksytle suppression via comments
1 parent 6d51ac6 commit 26c0329

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

checkstyle.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,14 @@
219219
<property name="optional" value="true"/>
220220
</module>
221221

222+
<!-- Suppress filters via comments -->
223+
<!-- https://stackoverflow.com/a/4023351/9767089 -->
224+
<module name="SuppressionCommentFilter">
225+
<property name="offCommentFormat" value="CHECKSTYLE.OFF\: ([\w\|]+)"/>
226+
<property name="onCommentFormat" value="CHECKSTYLE.ON\: ([\w\|]+)"/>
227+
<property name="checkFormat" value="$1"/>
228+
</module>
229+
222230
</module>
223231

224232
</module>

0 commit comments

Comments
 (0)