| author | Patrick Gottschaemmer | 2013-01-24 11:45:01 (EST) |
|---|---|---|
| committer | Patrick Gottschaemmer | 2013-01-26 08:26:45 (EST) |
| commit | 6da034301b1f54351336c66fabf570c069a5bc66 (patch) (side-by-side diff) | |
| tree | b58440db6d7cabc0d82bf1deb88803c8e8746d3a | |
| parent | 570f661dc3b1ef822180e7aa7311e52e5415355a (diff) | |
| download | org.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
Change-Id: I8303a5609991194ca9e122d2ea82933c94d21390
| -rw-r--r-- | etc/releng/checkstyle.xml | 14 | ||||
| -rw-r--r-- | pom.xml | 21 |
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 --- a/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> @@ -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> |

