[DEV] update check style
This commit is contained in:
parent
4c6752a53d
commit
8b661eb4ff
@ -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
12
pom.xml
@ -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 -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user