You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by pw...@apache.org on 2014/07/28 03:50:39 UTC

git commit: SPARK-2651: Add maven scalastyle plugin

Repository: spark
Updated Branches:
  refs/heads/master e5bbce9a6 -> d7eac4c3d


SPARK-2651: Add maven scalastyle plugin

Can be run as: "mvn scalastyle:check"

Author: Rahul Singhal <ra...@guavus.com>

Closes #1550 from rahulsinghaliitd/SPARK-2651 and squashes the following commits:

53748dd [Rahul Singhal] SPARK-2651: Add maven scalastyle plugin


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/d7eac4c3
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/d7eac4c3
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/d7eac4c3

Branch: refs/heads/master
Commit: d7eac4c3db7462e60e0c456dc93780167f5fcb2c
Parents: e5bbce9
Author: Rahul Singhal <ra...@guavus.com>
Authored: Sun Jul 27 18:50:32 2014 -0700
Committer: Patrick Wendell <pw...@gmail.com>
Committed: Sun Jul 27 18:50:32 2014 -0700

----------------------------------------------------------------------
 .gitignore |  1 +
 pom.xml    | 24 ++++++++++++++++++++++++
 2 files changed, 25 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/d7eac4c3/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index 061c894..a4ec12c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -51,6 +51,7 @@ unit-tests.log
 rat-results.txt
 scalastyle.txt
 conf/*.conf
+scalastyle-output.xml
 
 # For Hive
 metastore_db/

http://git-wip-us.apache.org/repos/asf/spark/blob/d7eac4c3/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 4e2d64a..d2e6b3c 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>