Add Checkstyle configuration for line length

Enforces line length of 120 characters, which fails due to many
violations.
This commit is contained in:
Andrew Gaul 2012-10-26 09:34:48 -07:00
parent b855d98f13
commit 44f6318759
2 changed files with 21 additions and 0 deletions

View File

@ -541,6 +541,15 @@
</execution> </execution>
</executions> </executions>
</plugin> </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> </plugins>
<pluginManagement> <pluginManagement>
<plugins> <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>