Skip to content

Commit

Permalink
[SPARK-3843][Minor] Cleanup scalastyle.txt at the end of running dev/…
Browse files Browse the repository at this point in the history
…scalastyle

dev/scalastyle create a log file 'scalastyle.txt'. it is overwrote per running but never deleted even though dev/mima and dev/lint-python delete their log files.

Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp>

Closes apache#2702 from sarutak/scalastyle-txt-cleanup and squashes the following commits:

d6e238e [Kousuke Saruta] Fixed dev/scalastyle to cleanup scalastyle.txt
  • Loading branch information
sarutak authored and pwendell committed Oct 8, 2014
1 parent b92bd5a commit add174a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dev/scalastyle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ echo -e "q\n" | sbt/sbt -Pyarn -Phadoop-2.2 -Dhadoop.version=2.2.0 yarn/scalasty
>> scalastyle.txt

ERRORS=$(cat scalastyle.txt | grep -e "\<error\>")
rm scalastyle.txt

if test ! -z "$ERRORS"; then
echo -e "Scalastyle checks failed at following occurrences:\n$ERRORS"
exit 1
Expand Down

0 comments on commit add174a

Please sign in to comment.