aboutsummaryrefslogtreecommitdiff
path: root/dev/scalastyle
diff options
context:
space:
mode:
authorGuoQiang Li <witgo@qq.com>2014-10-26 16:24:50 -0700
committerJosh Rosen <joshrosen@databricks.com>2014-10-26 16:24:50 -0700
commit89e8a5d8ba57255c46cadfc803fcddeeec93325f (patch)
tree7e6182d32e8b65927b5c457eac1c1e422a952252 /dev/scalastyle
parent2838bf8aadd5228829c1a869863bc4da7877fdfb (diff)
downloadspark-89e8a5d8ba57255c46cadfc803fcddeeec93325f.tar.gz
spark-89e8a5d8ba57255c46cadfc803fcddeeec93325f.tar.bz2
spark-89e8a5d8ba57255c46cadfc803fcddeeec93325f.zip
[SPARK-3997][Build]scalastyle should output the error location
Author: GuoQiang Li <witgo@qq.com> Closes #2846 from witgo/SPARK-3997 and squashes the following commits: d6a57f8 [GuoQiang Li] scalastyle should output the error location
Diffstat (limited to 'dev/scalastyle')
-rwxr-xr-xdev/scalastyle2
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/scalastyle b/dev/scalastyle
index c3b356bcb3..ed1b6b730a 100755
--- a/dev/scalastyle
+++ b/dev/scalastyle
@@ -25,7 +25,7 @@ echo -e "q\n" | sbt/sbt -Pyarn-alpha -Phadoop-0.23 -Dhadoop.version=0.23.9 yarn-
echo -e "q\n" | sbt/sbt -Pyarn -Phadoop-2.2 -Dhadoop.version=2.2.0 yarn/scalastyle \
>> scalastyle.txt
-ERRORS=$(cat scalastyle.txt | grep -e "\<error\>")
+ERRORS=$(cat scalastyle.txt | awk '{if($1~/error/)print}')
rm scalastyle.txt
if test ! -z "$ERRORS"; then