mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix check style script.
This commit is contained in:
parent
a7b3ec0e42
commit
5256da03db
@ -1,9 +1,9 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
REPO_ROOT="$(dirname "$0")"/..
|
|
||||||
|
|
||||||
(
|
(
|
||||||
|
REPO_ROOT="$(dirname "$0")"/..
|
||||||
cd $REPO_ROOT
|
cd $REPO_ROOT
|
||||||
|
|
||||||
WHITESPACE=$(git grep -n -I -E "^.*[[:space:]]+$" | grep -v "test/libsolidity/ASTJSON\|test/compilationTests/zeppelin/LICENSE")
|
WHITESPACE=$(git grep -n -I -E "^.*[[:space:]]+$" | grep -v "test/libsolidity/ASTJSON\|test/compilationTests/zeppelin/LICENSE")
|
||||||
|
|
||||||
if [[ "$WHITESPACE" != "" ]]
|
if [[ "$WHITESPACE" != "" ]]
|
||||||
@ -12,10 +12,7 @@ then
|
|||||||
echo "$WHITESPACE" >&2
|
echo "$WHITESPACE" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
)
|
|
||||||
|
|
||||||
(
|
|
||||||
cd $REPO_ROOT
|
|
||||||
FORMATERROR=$(
|
FORMATERROR=$(
|
||||||
(
|
(
|
||||||
git grep -nIE "\<(if|for)\(" -- '*.h' '*.cpp'
|
git grep -nIE "\<(if|for)\(" -- '*.h' '*.cpp'
|
||||||
|
Loading…
Reference in New Issue
Block a user