Merge pull request #5400 from ethereum/fixcheckstyle

Fix check style script.
This commit is contained in:
chriseth 2018-11-13 10:59:42 +01:00 committed by GitHub
commit ac980fb89b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 7 deletions

View File

@ -1,9 +1,9 @@
#!/usr/bin/env bash
REPO_ROOT="$(dirname "$0")"/..
(
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" != "" ]]
@ -12,10 +12,7 @@ then
echo "$WHITESPACE" >&2
exit 1
fi
)
(
cd $REPO_ROOT
FORMATERROR=$(
(
git grep -nIE "\<(if|for)\(" -- '*.h' '*.cpp'