Add code formatter

Add checkstyle as maven goal
This will fail the build if the code is not formatted properly
This commit is contained in:
Smart123s
2022-04-18 09:18:55 +02:00
committed by games647
parent d5d4a32c3f
commit 13b2f22e31

20
pom.xml
View File

@ -125,6 +125,26 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.1.2</version>
<configuration>
<encoding>UTF-8</encoding>
<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>
<linkXRef>false</linkXRef>
</configuration>
<executions>
<execution>
<id>validate</id>
<phase>validate</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<resources>