Skip to content

Commit add174a

Browse files
sarutakpwendell
authored andcommitted
[SPARK-3843][Minor] Cleanup scalastyle.txt at the end of running dev/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 <[email protected]> Closes #2702 from sarutak/scalastyle-txt-cleanup and squashes the following commits: d6e238e [Kousuke Saruta] Fixed dev/scalastyle to cleanup scalastyle.txt
1 parent b92bd5a commit add174a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dev/scalastyle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ echo -e "q\n" | sbt/sbt -Pyarn -Phadoop-2.2 -Dhadoop.version=2.2.0 yarn/scalasty
2626
>> scalastyle.txt
2727

2828
ERRORS=$(cat scalastyle.txt | grep -e "\<error\>")
29+
rm scalastyle.txt
30+
2931
if test ! -z "$ERRORS"; then
3032
echo -e "Scalastyle checks failed at following occurrences:\n$ERRORS"
3133
exit 1

0 commit comments

Comments
 (0)