run-shellcheck appease shell check

This commit is contained in:
David Sidrane 2020-08-20 01:59:56 -07:00 committed by Daniel Agar
parent f3c2ed5eb6
commit f0b8bc9dd6
1 changed files with 6 additions and 0 deletions

View File

@ -21,17 +21,23 @@ echo "Running shellcheck in '$search_directory'."
# Disabled rules:
# SC2121: allow 'set' as assignment (NuttX-style)
# SC1008: unrecognized shebang
# SC1090: use of source (.) - Can't follow non-constant source. Use a directive to specify location.
# SC1091: use of source (.) - Not following: xxxx openBinaryFile: does not exist (No such file or directory)
# SC2086: double quote to prevent globbing and word splitting
# SC2166: allow the form [ $OUTPUT_MODE == fmu -o $OUTPUT_MODE == io ]
# SC2169: In dash, 'source' in place of '.' is not supported. (we alias it)
# SC2148: allow files w/o shebang
# SC2039: In POSIX sh, array references are undefined. TODO: fix this
# SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
shellcheck -x \
-e SC1008 \
-e SC1090 \
-e SC1091 \
-e SC2086 \
-e SC2121 \
-e SC2148 \
-e SC2166 \
-e SC2169 \
-e SC2039 \
-e SC2181 \
--shell=dash \