[CI] add check formater valadator
This commit is contained in:
parent
18a71c8140
commit
77220ca0cd
@ -25,6 +25,7 @@ style_job:
|
|||||||
stage: style
|
stage: style
|
||||||
script:
|
script:
|
||||||
- mvn $MAVEN_CLI_OPTS checkstyle:checkstyle
|
- mvn $MAVEN_CLI_OPTS checkstyle:checkstyle
|
||||||
|
- mvn $MAVEN_CLI_OPTS formatter:validate
|
||||||
|
|
||||||
build_job:
|
build_job:
|
||||||
stage: build
|
stage: build
|
||||||
|
21
pom.xml
21
pom.xml
@ -116,14 +116,21 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<encoding>UTF-8</encoding>
|
<encoding>UTF-8</encoding>
|
||||||
<configFile>Formatter.xml</configFile>
|
<configFile>Formatter.xml</configFile>
|
||||||
|
<directories>
|
||||||
|
<directory>src/</directory>
|
||||||
|
<directory>test/src</directory>
|
||||||
|
</directories>
|
||||||
|
<includes>
|
||||||
|
<include>**/*.java</include>
|
||||||
|
</includes>
|
||||||
</configuration>
|
</configuration>
|
||||||
<!-- <executions> -->
|
<executions>
|
||||||
<!-- <execution> -->
|
<execution>
|
||||||
<!-- <goals> -->
|
<goals>
|
||||||
<!-- <goal>validate</goal> -->
|
<goal>validate</goal>
|
||||||
<!-- </goals> -->
|
</goals>
|
||||||
<!-- </execution> -->
|
</execution>
|
||||||
<!-- </executions> -->
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user