diff --git a/.github/workflows/go-coverage-report.yaml b/.github/workflows/go-coverage-report.yaml index ea5d9886..09679c83 100644 --- a/.github/workflows/go-coverage-report.yaml +++ b/.github/workflows/go-coverage-report.yaml @@ -45,7 +45,7 @@ jobs: run: | cd bsctl go build -v -o bsctl - echo "$PWD" >> $GITHUB_PATH + echo "$PWD" >> "$GITHUB_PATH" - name: pwd run: pwd && ls -laf diff --git a/.github/workflows/static-checks.yaml b/.github/workflows/static-checks.yaml index 14096f5a..d060e56d 100644 --- a/.github/workflows/static-checks.yaml +++ b/.github/workflows/static-checks.yaml @@ -46,6 +46,26 @@ jobs: mapfile -t bash_all < <(git ls-files '*.bash' || true) mapfile -t zsh_files < <(git ls-files '*.zsh' || true) + # Temporary shellcheck legacy split: keep strict linting for non-legacy scripts. + mapfile -t shellcheck_legacy_sh_files < <( + printf '%s\n' "${sh_files[@]}" | + grep -E '^(shared-scripts/|bsctl/scripts/|\.agents/scripts/|alias/basic-setup\.generalrc\.sh$|alias/sh/|resources/big-bang-overrides/|scripts/workflows/)' || true + ) + mapfile -t shellcheck_strict_sh_files < <( + printf '%s\n' "${sh_files[@]}" | + grep -Ev '^(shared-scripts/|bsctl/scripts/|\.agents/scripts/|alias/basic-setup\.generalrc\.sh$|alias/sh/|resources/big-bang-overrides/|scripts/workflows/)' || true + ) + + # Temporary shfmt-only exclusions for legacy script trees with known formatting drift. + # Deferred cleanup is tracked in #335; keep this scoped to these paths/files only. + mapfile -t shfmt_sh_files < <( + printf '%s\n' "${sh_files[@]}" | + grep -v '^shared-scripts/' | + grep -v '^bsctl/scripts/' | + grep -v '^\.agents/scripts/' | + grep -v '^alias/basic-setup\.generalrc\.sh$' || true + ) + # Temporary exclusions for legacy/bash completion files pending dedicated cleanup. mapfile -t shellcheck_bash_files < <( printf '%s\n' "${bash_all[@]}" | @@ -60,6 +80,15 @@ jobs: echo "sh_files<