added custom checkstyle configuration with a small sample set of checks, including ones with customized properties.

pull/419/merge
William Kim 2013-07-10 14:39:27 -04:00 committed by Justin Richer
parent 9e9091e064
commit cf0c4a7f45
2 changed files with 22 additions and 1 deletions

19
checkstyle.xml Normal file
View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<module name="Checker">
<module name="TreeWalker">
<module name="AvoidStarImport" />
<module name="LineLength">
<property name="max" value="250" />
</module>
<module name="RedundantImport" />
<module name="TodoComment" />
<module name="TodoComment">
<property name="format" value="FIXME" />
</module>
<module name="UnusedImports" />
</module>
</module>

View File

@ -435,7 +435,9 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.10</version>
<!-- custom configuration goes here -->
<configuration>
<configLocation>checkstyle.xml</configLocation>
</configuration>
</plugin>
</plugins>
</reporting>