Skip to content
Permalink
Browse files

Fix SC2188 warnings

  • Loading branch information
nyalldawson committed Jun 21, 2018
1 parent 0e9a381 commit 5b375a2edfdacfd41b10a61e3c4bbbc637aeb0cd
@@ -65,7 +65,7 @@ REV=$(git log -n1 --pretty=%H)
git diff >sha-$REV.diff

ASTYLEDIFF=astyle.$REV.diff
>$ASTYLEDIFF
true > $ASTYLEDIFF

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

# verify SIP files
SIPIFYDIFF=sipify.$REV.diff
>$SIPIFYDIFF
true > $SIPIFYDIFF
for f in $MODIFIED; do
# if cpp header
if [[ $f =~ ^src\/(core|gui|analysis|server)\/.*\.h$ ]]; then
@@ -52,7 +52,7 @@ fi
echo "Checking changes between $REV0 and $REV1"

ASTYLEDIFF=astyle.r$REV0-r$REV1.diff
>$ASTYLEDIFF
true > $ASTYLEDIFF

# reformat
for f in $MODIFIED; do
@@ -16,7 +16,7 @@ fi
set -e

ASTYLEDIFF=/tmp/astyle.diff
>$ASTYLEDIFF
true > $ASTYLEDIFF


if [[ ! -z $TRAVIS_PULL_REQUEST_BRANCH ]]; then
@@ -5,7 +5,7 @@
DIR=$(git rev-parse --show-toplevel)

pushd ${DIR} > /dev/null || exit
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'))
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'))
popd > /dev/null || exit

if [[ $result ]]; then

0 comments on commit 5b375a2

Please sign in to comment.
You can’t perform that action at this time.