Merge pull request #916 from andrewgaul/checkstyle

Add Checkstyle configuration for line length
This commit is contained in:
Adrian Cole 2012-10-29 16:47:00 -07:00
commit 68165154ed
2 changed files with 21 additions and 0 deletions

View File

@ -556,6 +556,15 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.9.1</version>
<configuration>
<configLocation>../resources/checkstyle.xml</configLocation>
<violationSeverity>warning</violationSeverity>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>

12
resources/checkstyle.xml Normal file
View File

@ -0,0 +1,12 @@
<?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">
<property name="severity" value="warning"/>
<module name="TreeWalker">
<module name="LineLength">
<property name="ignorePattern" value="^import\s.*;$"/>
<property name="max" value="120"/>
</module>
</module>
</module>