Jenkins add ShellCheck

This commit is contained in:
Daniel Agar
2018-08-25 20:12:29 +02:00
committed by Lorenz Meier
parent 2164ef8fb6
commit 3c4c9131aa
3 changed files with 24 additions and 1 deletions
+6 -1
View File
@@ -24,7 +24,12 @@ echo "Running shellcheck in '$search_directory'."
# SC2086: double quote to prevent globbing and word splitting
# SC2166: allow the form [ $OUTPUT_MODE == fmu -o $OUTPUT_MODE == io ]
# SC2148: allow files w/o shebang
shellcheck -a -x -e SC2121 -e SC1008 -e SC2086 -e SC2166 -e SC2148 \
shellcheck -x \
-e SC1008 \
-e SC2086 \
-e SC2121 \
-e SC2148 \
-e SC2166 \
$scripts
ret=$?
if [ $ret -ne 0 ]; then