Skip to content

Commit

Permalink
Use fmt-maven-plugin to check source complies with the Google Java St…
Browse files Browse the repository at this point in the history
…yle Guide.

(If it doesn't the author can manually type 'mvn fmt:format' to reformat,
or manually reformat in the IDE.)
  • Loading branch information
tomwhite committed Feb 5, 2018
1 parent f910f9d commit 8446bc3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ before_install:
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
- cat /etc/hosts # optionally check the content *after*

script: mvn clean test jacoco:report
script: mvn clean fmt:check test jacoco:report

after_success:
- python scripts/deploy/addServerToM2Settings.py
Expand Down
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,18 @@
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>com.coveo</groupId>
<artifactId>fmt-maven-plugin</artifactId>
<version>2.2.0</version>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
Expand Down

0 comments on commit 8446bc3

Please sign in to comment.