CI: shellcheck: allow informative checks to fail

There are lots of informative checks which are safe to ignore but happen
a lot especially with unit testing scripts. Adjust shellcheck to only
fail on warning or above.

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6182
This commit is contained in:
Caleb Connolly 2025-02-09 22:21:05 +01:00 committed by Clayton Craft
parent 9eb1f8d1e7
commit 036c802769
No known key found for this signature in database
GPG key ID: 7A342565FF635F79

View file

@ -43,5 +43,5 @@ sh_files="
for file in $sh_files; do
echo "Test with shellcheck: $file"
cd "$DIR/$(dirname "$file")"
shellcheck -e SC1008 -e SC3043 -x "$(basename "$file")"
shellcheck -S warning -e SC1008 -e SC3043 -x "$(basename "$file")"
done