aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Gottschaemmer2013-01-24 11:45:01 (EST)
committerPatrick Gottschaemmer2013-01-26 08:26:45 (EST)
commit6da034301b1f54351336c66fabf570c069a5bc66 (patch)
treeb58440db6d7cabc0d82bf1deb88803c8e8746d3a
parent570f661dc3b1ef822180e7aa7311e52e5415355a (diff)
downloadorg.eclipse.recommenders-6da034301b1f54351336c66fabf570c069a5bc66.zip
org.eclipse.recommenders-6da034301b1f54351336c66fabf570c069a5bc66.tar.gz
org.eclipse.recommenders-6da034301b1f54351336c66fabf570c069a5bc66.tar.bz2
[releng] checkstyle build integration for non-Unix line delimiters checkrefs/changes/11/9811/5
-rw-r--r--etc/releng/checkstyle.xml14
-rw-r--r--pom.xml21
2 files changed, 35 insertions, 0 deletions
diff --git a/etc/releng/checkstyle.xml b/etc/releng/checkstyle.xml
new file mode 100644
index 0000000..8945751
--- /dev/null
+++ b/etc/releng/checkstyle.xml
@@ -0,0 +1,14 @@
+<?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="RegexpMultiline">
+ <!-- Match from the first illegal line delimiter to the end of file -->
+ <property name="format" value="(\r\n|\r)(.*(\r\n|\r|\n))*.*"/>
+ <property name="message" value="Found non-Unix line delimiter(s)"/>
+ </module>
+ <module name="NewlineAtEndOfFile">
+ <!-- Use a Unix line delimiter at end of file -->
+ <property name="lineSeparator" value="lf"/>
+ </module>
+</module>
diff --git a/pom.xml b/pom.xml
index f0fa6b9..c48e965 100644
--- a/pom.xml
+++ b/pom.xml
@@ -163,6 +163,17 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
<pluginManagement>
<plugins>
@@ -293,6 +304,16 @@
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <version>2.9.1</version>
+ <configuration>
+ <includeTestSourceDirectory>true</includeTestSourceDirectory>
+ <configLocation>./etc/releng/checkstyle.xml</configLocation>
+ <logViolationsToConsole>true</logViolationsToConsole>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.0.1</version>
<executions>