diff options
author | chriseth <chris@ethereum.org> | 2018-11-12 22:18:29 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-11-13 05:57:32 +0800 |
commit | 5256da03db0a2b24c4bb66ead211a8229c9371af (patch) | |
tree | 418babc3654e967cdf0e535af171d16bc410b74f /scripts | |
parent | a7b3ec0e42e5aabed3f8603cd46575189211a2ca (diff) | |
download | dexon-solidity-5256da03db0a2b24c4bb66ead211a8229c9371af.tar.gz dexon-solidity-5256da03db0a2b24c4bb66ead211a8229c9371af.tar.zst dexon-solidity-5256da03db0a2b24c4bb66ead211a8229c9371af.zip |
Fix check style script.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/check_style.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/check_style.sh b/scripts/check_style.sh index a8557a54..4f716d66 100755 --- a/scripts/check_style.sh +++ b/scripts/check_style.sh @@ -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' |