Create a gist now

Instantly share code, notes, and snippets.

@leeym /pom.xml Secret
Created Oct 26, 2016

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>6.12.1</version>
</dependency>
<dependency>
<groupId>com.wealthfront</groupId>
<artifactId>wealthfront-test-commons</artifactId>
<version>${wealthfront-test-commons-version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>validate</id>
<phase>validate</phase>
<configuration>
<configLocation>wfstyle.xml</configLocation>
<encoding>UTF-8</encoding>
<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>
<includes>**/*.java</includes>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<suppressionsLocation>src/checkstyle_suppressions.xml</suppressionsLocation>
<cacheFile>${basedir}/checkstyle-cachefile</cacheFile>
</configuration>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment