added custom checkstyle configuration with a small sample set of checks, including ones with customized properties.
parent
9e9091e064
commit
cf0c4a7f45
|
@ -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>
|
4
pom.xml
4
pom.xml
|
@ -435,7 +435,9 @@
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-checkstyle-plugin</artifactId>
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
||||||
<version>2.10</version>
|
<version>2.10</version>
|
||||||
<!-- custom configuration goes here -->
|
<configuration>
|
||||||
|
<configLocation>checkstyle.xml</configLocation>
|
||||||
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</reporting>
|
</reporting>
|
||||||
|
|
Loading…
Reference in New Issue