aboutsummaryrefslogtreecommitdiff
path: root/scalastyle-config.xml
diff options
context:
space:
mode:
authorKousuke Saruta <sarutak@oss.nttdata.co.jp>2016-01-08 00:53:15 -0800
committerReynold Xin <rxin@databricks.com>2016-01-08 00:53:15 -0800
commit794ea553bd0fcfece15b610b47ee86d6644134c9 (patch)
tree7820e90b110a863d0cd485025d14400d51b1f01e /scalastyle-config.xml
parent726bd3c4ece33667096f04be4d3e1ea13048a1af (diff)
downloadspark-794ea553bd0fcfece15b610b47ee86d6644134c9.tar.gz
spark-794ea553bd0fcfece15b610b47ee86d6644134c9.tar.bz2
spark-794ea553bd0fcfece15b610b47ee86d6644134c9.zip
[SPARK-12692][BUILD] Scala style: check no white space before comma and colon
We should not put a white space before `,` and `:` so let's check it. Because there are lots of style violations, first, I'd like to add a checker, enable and let the level `warning`. Then, I'd like to fix the style step by step. Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp> Closes #10643 from sarutak/SPARK-12692.
Diffstat (limited to 'scalastyle-config.xml')
-rw-r--r--scalastyle-config.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/scalastyle-config.xml b/scalastyle-config.xml
index ee855ca0e0..9714c46fe9 100644
--- a/scalastyle-config.xml
+++ b/scalastyle-config.xml
@@ -218,6 +218,12 @@ This file is divided into 3 sections:
</parameters>
</check>
+ <!-- Should turn this on, but we have a few places that need to be fixed first -->
+ <check level="warning" class="org.scalastyle.scalariform.DisallowSpaceBeforeTokenChecker" enabled="true">
+ <parameters>
+ <parameter name="tokens">COLON, COMMA</parameter>
+ </parameters>
+ </check>
<!-- ================================================================================ -->
<!-- rules we don't want -->