diff options
author | Rahul Singhal <rahul.singhal@guavus.com> | 2014-07-27 18:50:32 -0700 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2014-07-27 18:50:32 -0700 |
commit | d7eac4c3db7462e60e0c456dc93780167f5fcb2c (patch) | |
tree | 9e73cfa3bbed575f01f7878e24533269120946bd /pom.xml | |
parent | e5bbce9a60eb99c059315edbf18a1a923d93d9d5 (diff) | |
download | spark-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.xml | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -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> |