Skip to content

Commit ff4f650

Browse files
committed
Specify checkstyle version explicitly
1 parent 23d9285 commit ff4f650

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

checkstyle.xml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@
2727
<property name="message" value="Space needed around ':' character."/>
2828
</module>
2929

30+
<!-- Checks for Size Violations. -->
31+
<!-- See http://checkstyle.sf.net/config_sizes.html -->
32+
<module name="LineLength">
33+
<property name="max" value="120"/>
34+
</module>
35+
3036
<module name="TreeWalker">
3137
<!-- Checks for Javadoc comments. -->
3238
<!-- See http://checkstyle.sf.net/config_javadoc.html -->
@@ -59,17 +65,10 @@
5965
<property name="processJavadoc" value="true"/>
6066
</module>
6167

62-
63-
<!-- Checks for Size Violations. -->
64-
<!-- See http://checkstyle.sf.net/config_sizes.html -->
65-
<module name="LineLength">
66-
<property name="max" value="120"/>
67-
</module>
6868
<module name="MethodLength">
6969
<property name="max" value="200"/>
7070
</module>
7171

72-
7372
<!-- Checks for whitespace -->
7473
<!-- See http://checkstyle.sf.net/config_whitespace.html -->
7574
<module name="GenericWhitespace"/>

pom.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,14 @@
211211
<plugin>
212212
<groupId>org.apache.maven.plugins</groupId>
213213
<artifactId>maven-checkstyle-plugin</artifactId>
214-
<version>3.1.0</version>
214+
<version>3.1.1</version>
215+
<dependencies>
216+
<dependency>
217+
<groupId>com.puppycrawl.tools</groupId>
218+
<artifactId>checkstyle</artifactId>
219+
<version>8.39</version>
220+
</dependency>
221+
</dependencies>
215222
<configuration>
216223
<failsOnError>true</failsOnError>
217224
<configLocation>checkstyle.xml</configLocation>

0 commit comments

Comments
 (0)