[DEV] update check style

This commit is contained in:
Edouard DUPIN 2020-08-29 13:42:12 +02:00
parent 4c6752a53d
commit 8b661eb4ff
2 changed files with 13 additions and 4 deletions

View File

@ -24,8 +24,7 @@ stages:
style_job:
stage: style
script:
- java -jar ~/checkstyle.jar -c CheckStyle.xml `find src/ -name "*.java"`
- java -jar ~/checkstyle.jar -c CheckStyle.xml `find test/src/ -name "*.java"`
- mvn $MAVEN_CLI_OPTS checkstyle:checkstyle
build_job:
stage: build
@ -45,7 +44,6 @@ test_job:
artifacts:
when: on_success
expire_in: 3 day
keep: latest
paths:
- target/site/jacoco
reports:
@ -61,6 +59,5 @@ package_job:
artifacts:
when: on_success
expire_in: 3 day
keep: latest
paths:
- target/*.jar

12
pom.xml
View File

@ -96,6 +96,18 @@
<nohelp>true</nohelp>
</configuration>
</plugin>
<!-- Check the style of the code -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<configLocation>CheckStyle.xml</configLocation>
<consoleOutput>true</consoleOutput>
<failOnViolation>true</failOnViolation>
<failsOnError>true</failsOnError>
</configuration>
</plugin>
</plugins>
</build>
<!-- Generate Java-docs As Part Of Project Reports -->