From 302dfb972078fd8af15818d5c7e7d12a2e0fd2c0 Mon Sep 17 00:00:00 2001 From: Juan David Hurtado G Date: Sun, 8 Dec 2024 19:56:36 -0500 Subject: [PATCH] github: shellcheck exclude some rules --- .github/workflows/shellcheck.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml index c92bf931..721e7cdc 100644 --- a/.github/workflows/shellcheck.yml +++ b/.github/workflows/shellcheck.yml @@ -16,8 +16,12 @@ jobs: - name: Run ShellCheck uses: ludeeus/action-shellcheck@2.0.0 + env: + # Excluding SC3043: In POSIX sh, 'local' is undefined. Ignoring because local is a built-in command in FreeBSD + # Excluding SC2154: Variable is referenced but not assigned. Because we include files in the scripts + SHELLCHECK_OPTS: -e SC3043 -e SC2154 with: severity: warning scandir: "./usr/local/share/bastille" additional_files: "./usr/local/bin/bastille" - ignore_paths: "./usr/local/share/bastille/templates" + ignore_paths: "./usr/local/share/bastille/templates ./usr/local/share/bastille/colors.pre.sh"