Commit 4cb3a3a 1 parent b68900f commit 4cb3a3a Copy full SHA for 4cb3a3a
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,23 +47,23 @@ function check_style() {
47
47
if ! [ -z " ${matches} " ]; then
48
48
echo " Lines longer than $n characters were found in the following:"
49
49
echo " ${matches} "
50
- # exit 1
50
+ exit 1
51
51
fi
52
52
53
53
# Ensure there's no trailing whitespace.
54
54
local matches=$( git grep -PIn " \s+$" " ${PROJECT_ROOT} " | grep -v -F ' .stderr:' )
55
55
if ! [ -z " ${matches} " ]; then
56
56
echo " Trailing whitespace was found in the following:"
57
57
echo " ${matches} "
58
- # exit 1
58
+ exit 1
59
59
fi
60
60
61
61
local pattern=' tail -n 1 % | grep -q "^$" && echo %'
62
62
local matches=$( git grep -z -Il ' ' | xargs -0 -P 16 -I % sh -c " ${pattern} " )
63
63
if ! [ -z " ${matches} " ]; then
64
64
echo " Trailing new line(s) found in the following:"
65
65
echo " ${matches} "
66
- # exit 1
66
+ exit 1
67
67
fi
68
68
}
69
69
You can’t perform that action at this time.
0 commit comments