Skip to content

Commit 09d20ce

Browse files
committed
Checkstyle + Maven
1 parent 0b45e09 commit 09d20ce

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

pom.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,36 @@
2626
<distribution>repo</distribution>
2727
</license>
2828
</licenses>
29+
30+
<profiles>
31+
<profile>
32+
<id>checkstyle</id>
33+
<build>
34+
<plugins>
35+
<plugin>
36+
<groupId>org.apache.maven.plugins</groupId>
37+
<artifactId>maven-checkstyle-plugin</artifactId>
38+
<version>3.3.1</version>
39+
<dependencies>
40+
<dependency>
41+
<groupId>com.puppycrawl.tools</groupId>
42+
<artifactId>checkstyle</artifactId>
43+
<version>10.12.7</version>
44+
</dependency>
45+
</dependencies>
46+
<configuration>
47+
<configLocation>.config/checkstyle/checkstyle.xml</configLocation>
48+
</configuration>
49+
<executions>
50+
<execution>
51+
<goals>
52+
<goal>check</goal>
53+
</goals>
54+
</execution>
55+
</executions>
56+
</plugin>
57+
</plugins>
58+
</build>
59+
</profile>
60+
</profiles>
2961
</project>

0 commit comments

Comments
 (0)