aboutsummaryrefslogtreecommitdiff
path: root/pom.xml
diff options
context:
space:
mode:
authorRahul Singhal <rahul.singhal@guavus.com>2014-07-27 18:50:32 -0700
committerPatrick Wendell <pwendell@gmail.com>2014-07-27 18:50:32 -0700
commitd7eac4c3db7462e60e0c456dc93780167f5fcb2c (patch)
tree9e73cfa3bbed575f01f7878e24533269120946bd /pom.xml
parente5bbce9a60eb99c059315edbf18a1a923d93d9d5 (diff)
downloadspark-d7eac4c3db7462e60e0c456dc93780167f5fcb2c.tar.gz
spark-d7eac4c3db7462e60e0c456dc93780167f5fcb2c.tar.bz2
spark-d7eac4c3db7462e60e0c456dc93780167f5fcb2c.zip
SPARK-2651: Add maven scalastyle plugin
Can be run as: "mvn scalastyle:check" Author: Rahul Singhal <rahul.singhal@guavus.com> Closes #1550 from rahulsinghaliitd/SPARK-2651 and squashes the following commits: 53748dd [Rahul Singhal] SPARK-2651: Add maven scalastyle plugin
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml24
1 files changed, 24 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 4e2d64a833..d2e6b3c0ed 100644
--- a/pom.xml
+++ b/pom.xml
@@ -957,6 +957,30 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
+ <plugin>
+ <groupId>org.scalastyle</groupId>
+ <artifactId>scalastyle-maven-plugin</artifactId>
+ <version>0.4.0</version>
+ <configuration>
+ <verbose>false</verbose>
+ <failOnViolation>true</failOnViolation>
+ <includeTestSourceDirectory>false</includeTestSourceDirectory>
+ <failOnWarning>false</failOnWarning>
+ <sourceDirectory>${basedir}/src/main/scala</sourceDirectory>
+ <testSourceDirectory>${basedir}/src/test/scala</testSourceDirectory>
+ <configLocation>scalastyle-config.xml</configLocation>
+ <outputFile>scalastyle-output.xml</outputFile>
+ <outputEncoding>UTF-8</outputEncoding>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>