From 3faa5f3bdc6b93f7cc279d1662c12c886bf0aa57 Mon Sep 17 00:00:00 2001 From: Sebastian Wilzbach Date: Sun, 2 Jul 2017 23:54:00 +0200 Subject: [PATCH] Add check for trailing whitespace --- travis-ci.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/travis-ci.sh b/travis-ci.sh index 0ee913f..439a8eb 100755 --- a/travis-ci.sh +++ b/travis-ci.sh @@ -4,6 +4,9 @@ set -e -x -o pipefail DUB_FLAGS=${DUB_FLAGS:-} +# Check for trailing whitespace" +grep -nrI --include='*.d' '\s$' . && (echo "Trailing whitespace found"; exit 1) + # test for successful release build dub build -b release --compiler=$DC -c $CONFIG $DUB_FLAGS