Skip to content

Commit 5da529b

Browse files
committed
enable source warnings, use long parameter names for shellcheck
1 parent 1dd9030 commit 5da529b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/qa/run-shellcheck.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function runShellcheck() {
6969
fi
7070
done
7171

72-
shellcheck --version
72+
shellcheck --version
7373

7474
local -i fileWithIssuesCounter=0
7575
local -i fileCounter=0
@@ -81,7 +81,7 @@ function runShellcheck() {
8181
else
8282
((++fileCounter))
8383
declare output
84-
output=$(shellcheck -C -x -o all -P "$sourcePath" "$script" 2>&1 || true)
84+
output=$(shellcheck --check-sourced --color=auto --external-sources --enable=all --source-path="$sourcePath" "$script" 2>&1 || true)
8585
if [[ $output != "" ]]; then
8686
printf "%s\n" "$output"
8787
((++fileWithIssuesCounter))
@@ -107,7 +107,7 @@ function runShellcheck() {
107107
elif ((fileCounter == 0)); then
108108
die "looks suspicious, no files where analysed (%s symlinks skipped), watch out for errors above" "$skipped"
109109
else
110-
local runShellcheck_paths_as_string
110+
local runShellcheck_paths_as_string
111111
runShellcheck_paths_as_string=$(joinByChar $'\n' "${runShellcheck_paths[@]}")
112112
logSuccess "no shellcheck issues found, analysed %s files (%s symlinks skipped) in paths:\n%s" "$fileCounter" "$skipped" "$runShellcheck_paths_as_string"
113113
fi

0 commit comments

Comments
 (0)