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