aboutsummaryrefslogtreecommitdiff
path: root/scalastyle-config.xml
diff options
context:
space:
mode:
authorAndrew Or <andrew@databricks.com>2015-05-29 22:57:46 -0700
committerReynold Xin <rxin@databricks.com>2015-05-29 22:57:46 -0700
commit609c4923f98c188bce60ae35c1c8a08a8dfd95f1 (patch)
treed73f9941a9f7832c9eb9c0dc6aae445de96f5866 /scalastyle-config.xml
parent7ed06c39922ac90acab3a78ce0f2f21184ed68a5 (diff)
downloadspark-609c4923f98c188bce60ae35c1c8a08a8dfd95f1.tar.gz
spark-609c4923f98c188bce60ae35c1c8a08a8dfd95f1.tar.bz2
spark-609c4923f98c188bce60ae35c1c8a08a8dfd95f1.zip
[SPARK-7558] Guard against direct uses of FunSuite / FunSuiteLike
This is a follow-up patch to #6441. Author: Andrew Or <andrew@databricks.com> Closes #6510 from andrewor14/extends-funsuite-check and squashes the following commits: 6618b46 [Andrew Or] Exempt SparkSinkSuite from the FunSuite check 99d02ac [Andrew Or] Merge branch 'master' of github.com:apache/spark into extends-funsuite-check 48874dd [Andrew Or] Guard against direct uses of FunSuite / FunSuiteLike
Diffstat (limited to 'scalastyle-config.xml')
-rw-r--r--scalastyle-config.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/scalastyle-config.xml b/scalastyle-config.xml
index 68c8ce3b7e..890bf37949 100644
--- a/scalastyle-config.xml
+++ b/scalastyle-config.xml
@@ -153,4 +153,11 @@
</parameters>
</check>
<check level="error" class="org.scalastyle.scalariform.NotImplementedErrorUsage" enabled="true"></check>
+ <!-- As of SPARK-7558, all tests in Spark should extend o.a.s.SparkFunSuite instead of FunSuited directly -->
+ <check level="error" class="org.scalastyle.scalariform.TokenChecker" enabled="true">
+ <parameters>
+ <parameter name="regex">^FunSuite[A-Za-z]*$</parameter>
+ </parameters>
+ <customMessage>Tests must extend org.apache.spark.SparkFunSuite instead.</customMessage>
+ </check>
</scalastyle>