Skip to content

Commit d7eac4c

Browse files
Rahul Singhalpwendell
authored andcommitted
SPARK-2651: Add maven scalastyle plugin
Can be run as: "mvn scalastyle:check" Author: Rahul Singhal <[email protected]> Closes #1550 from rahulsinghaliitd/SPARK-2651 and squashes the following commits: 53748dd [Rahul Singhal] SPARK-2651: Add maven scalastyle plugin
1 parent e5bbce9 commit d7eac4c

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ unit-tests.log
5151
rat-results.txt
5252
scalastyle.txt
5353
conf/*.conf
54+
scalastyle-output.xml
5455

5556
# For Hive
5657
metastore_db/

pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,30 @@
957957
<groupId>org.apache.maven.plugins</groupId>
958958
<artifactId>maven-source-plugin</artifactId>
959959
</plugin>
960+
<plugin>
961+
<groupId>org.scalastyle</groupId>
962+
<artifactId>scalastyle-maven-plugin</artifactId>
963+
<version>0.4.0</version>
964+
<configuration>
965+
<verbose>false</verbose>
966+
<failOnViolation>true</failOnViolation>
967+
<includeTestSourceDirectory>false</includeTestSourceDirectory>
968+
<failOnWarning>false</failOnWarning>
969+
<sourceDirectory>${basedir}/src/main/scala</sourceDirectory>
970+
<testSourceDirectory>${basedir}/src/test/scala</testSourceDirectory>
971+
<configLocation>scalastyle-config.xml</configLocation>
972+
<outputFile>scalastyle-output.xml</outputFile>
973+
<outputEncoding>UTF-8</outputEncoding>
974+
</configuration>
975+
<executions>
976+
<execution>
977+
<phase>package</phase>
978+
<goals>
979+
<goal>check</goal>
980+
</goals>
981+
</execution>
982+
</executions>
983+
</plugin>
960984
</plugins>
961985
</build>
962986

0 commit comments

Comments
 (0)