Skip to content

Commit

Permalink
Add Checkstyle to report on and enforce conformance to the Google sty…
Browse files Browse the repository at this point in the history
…le guide (junit-team#1350)
  • Loading branch information
tomwhoiscontrary committed Oct 30, 2016
1 parent 140f1cd commit e636f9b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
<project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
<arguments />
<gpg.keyname>67893CC4</gpg.keyname>
<checkstyle.config.location>google_checks.xml</checkstyle.config.location>
</properties>

<dependencies>
Expand Down Expand Up @@ -379,6 +380,22 @@
<artifactId>maven-resources-plugin</artifactId>
<version>2.7</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<violationSeverity>error</violationSeverity> <!-- change to 'warning' to enforce strictly -->
<violationIgnore>indentation</violationIgnore>
</configuration>
</plugin>
</plugins>
</build>

Expand Down Expand Up @@ -452,6 +469,11 @@
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version>
</plugin>
</plugins>
</reporting>

Expand Down

0 comments on commit e636f9b

Please sign in to comment.