test for trailing spaces in new files

This commit is contained in:
JAremko 2017-04-23 08:03:43 +03:00 committed by syl20bnr
parent 7e266f4f3c
commit 813abff93b

View file

@ -39,6 +39,7 @@ if [ ! -z "$FORMATTING" ]; then
space-test)
echo "Testing for trailing and all sorts of broken white spaces"
git reset -q "${first_commit}"
git add -N .
git diff --check --color > space_test_result
if [[ -s space_test_result ]]; then
cat space_test_result