Skip to content

Commit 4cb3a3a

Browse files
committed
Revert local changes to scripts dir
1 parent b68900f commit 4cb3a3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/test.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,23 +47,23 @@ function check_style() {
4747
if ! [ -z "${matches}" ]; then
4848
echo "Lines longer than $n characters were found in the following:"
4949
echo "${matches}"
50-
# exit 1
50+
exit 1
5151
fi
5252

5353
# Ensure there's no trailing whitespace.
5454
local matches=$(git grep -PIn "\s+$" "${PROJECT_ROOT}" | grep -v -F '.stderr:')
5555
if ! [ -z "${matches}" ]; then
5656
echo "Trailing whitespace was found in the following:"
5757
echo "${matches}"
58-
# exit 1
58+
exit 1
5959
fi
6060

6161
local pattern='tail -n 1 % | grep -q "^$" && echo %'
6262
local matches=$(git grep -z -Il '' | xargs -0 -P 16 -I % sh -c "${pattern}")
6363
if ! [ -z "${matches}" ]; then
6464
echo "Trailing new line(s) found in the following:"
6565
echo "${matches}"
66-
# exit 1
66+
exit 1
6767
fi
6868
}
6969

0 commit comments

Comments
 (0)