From 036c8027694c28eb2cd998e3272d91b02291dfbe Mon Sep 17 00:00:00 2001 From: Caleb Connolly Date: Sun, 9 Feb 2025 22:21:05 +0100 Subject: [PATCH] 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 Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6182 --- .ci/shellcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/shellcheck.sh b/.ci/shellcheck.sh index bd42bef6f..02c983321 100755 --- a/.ci/shellcheck.sh +++ b/.ci/shellcheck.sh @@ -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