Skip to content

Commit 5b375a2

Browse files
committedJun 21, 2018
Fix SC2188 warnings
1 parent 0e9a381 commit 5b375a2

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed
 

‎scripts/prepare-commit.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ REV=$(git log -n1 --pretty=%H)
6565
git diff >sha-$REV.diff
6666

6767
ASTYLEDIFF=astyle.$REV.diff
68-
>$ASTYLEDIFF
68+
true > $ASTYLEDIFF
6969

7070
# reformat
7171
i=0
@@ -111,7 +111,7 @@ fi
111111

112112
# verify SIP files
113113
SIPIFYDIFF=sipify.$REV.diff
114-
>$SIPIFYDIFF
114+
true > $SIPIFYDIFF
115115
for f in $MODIFIED; do
116116
# if cpp header
117117
if [[ $f =~ ^src\/(core|gui|analysis|server)\/.*\.h$ ]]; then

‎scripts/update-indent.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fi
5252
echo "Checking changes between $REV0 and $REV1"
5353

5454
ASTYLEDIFF=astyle.r$REV0-r$REV1.diff
55-
>$ASTYLEDIFF
55+
true > $ASTYLEDIFF
5656

5757
# reformat
5858
for f in $MODIFIED; do

‎scripts/verify-indentation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fi
1616
set -e
1717

1818
ASTYLEDIFF=/tmp/astyle.diff
19-
>$ASTYLEDIFF
19+
true > $ASTYLEDIFF
2020

2121

2222
if [[ ! -z $TRAVIS_PULL_REQUEST_BRANCH ]]; then

‎tests/code_layout/test_shellcheck.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
DIR=$(git rev-parse --show-toplevel)
66

77
pushd ${DIR} > /dev/null || exit
8-
result=$(shellcheck -e SC2016,SC2015,SC2086,SC2002,SC1117,SC2154,SC2076,SC2046,SC1090,SC2038,SC2031,SC2030,SC2162,SC2196,SC2034,SC2044,SC2119,SC1001,SC2188,SC2119,SC2188,SC2120,SC2059,SC2128,SC2005,SC2013,SC2027,SC2090,SC2089,SC2124,SC2001,SC2010,SC1072,SC1073,SC1009,SC2166,SC2045,SC2028,SC1091,SC1083 $(find . -name '*.sh'))
8+
result=$(shellcheck -e SC2016,SC2015,SC2086,SC2002,SC1117,SC2154,SC2076,SC2046,SC1090,SC2038,SC2031,SC2030,SC2162,SC2196,SC2034,SC2044,SC2119,SC1001,SC2120,SC2059,SC2128,SC2005,SC2013,SC2027,SC2090,SC2089,SC2124,SC2001,SC2010,SC1072,SC1073,SC1009,SC2166,SC2045,SC2028,SC1091,SC1083 $(find . -name '*.sh'))
99
popd > /dev/null || exit
1010

1111
if [[ $result ]]; then

0 commit comments

Comments
 (0)
Please sign in to comment.