Merge pull request #4897 from ethereum/trailingWhitespaceDetection

Trailing whitespace detection script and circleci job.
This commit is contained in:
chriseth
2018-09-04 18:20:57 +02:00
committed by GitHub
3 changed files with 26 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
REPO_ROOT="$(dirname "$0")"/..
(
cd $REPO_ROOT
WHITESPACE=$(git grep -n -I -E "^.*[[:space:]]+$" | grep -v "test/libsolidity/ASTJSON\|test/compilationTests/zeppelin/LICENSE")
if [[ "$WHITESPACE" != "" ]]
then
echo "Error: Trailing whitespace found:" >&2
echo "$WHITESPACE" >&2
exit 1
fi
)