Skip to content

Commit befe509

Browse files
committed
Define checkstyle suppression filter location in maven plugin configuration
1 parent 8b02083 commit befe509

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

checkstyle.xml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,5 @@
168168
</module>
169169
<module name="SingleLineJavadoc"/>
170170
</module>
171-
172-
<module name="SuppressionFilter">
173-
<property name="file" value="${config_loc}/checkstyle-suppressions.xml" default="checkstyle-suppressions.xml"/>
174-
</module>
175-
171+
176172
</module>

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@
254254
<phase>validate</phase>
255255
<configuration>
256256
<configLocation>checkstyle.xml</configLocation>
257+
<suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
257258
<encoding>UTF-8</encoding>
258259
<consoleOutput>true</consoleOutput>
259260
<failsOnError>true</failsOnError>

0 commit comments

Comments
 (0)