Browse Source

shellcheck: Disable SC1117: backslash escaping

SC1117 was disabled after shellcheck release 0.5, because it was
too pedantic.

But shellcheck 0.5.0 is still in the Travis Homebrew cache.

So we disable SC1117 in shellcheck-tests.sh.

Part of 30065.
teor 5 years ago
parent
commit
dc4a018b05
1 changed files with 6 additions and 3 deletions
  1. 6 3
      tests/shellcheck-tests.sh

+ 6 - 3
tests/shellcheck-tests.sh

@@ -5,6 +5,8 @@ set -e
 # Verbose mode
 set -v
 
+# SC1117 was disabled after 0.5, because it was too pedantic
+EXCLUSIONS="--exclude=SC1117"
 
 # Output is prefixed with the name of the script
 myname=$(basename "$0")
@@ -17,7 +19,8 @@ echo "$myname: changing to chutney directory"
 cd "$CHUTNEY_DIR"
 
 
-echo "$myname: running shellcheck tests"
+echo "$myname: running shellcheck tests with $EXCLUSIONS"
 
-shellcheck chutney
-find . -name "*.sh" -exec shellcheck {} +
+shellcheck "$EXCLUSIONS" chutney
+
+find . -name "*.sh" -exec shellcheck "$EXCLUSIONS" {} +