Skip to content

fix: silence shellcheck SC2148 on tests/lib.sh - #13

Merged
grimaldi89 merged 1 commit into
masterfrom
fix/lib-sh-shellcheck-shebang
Jul 18, 2026
Merged

fix: silence shellcheck SC2148 on tests/lib.sh#13
grimaldi89 merged 1 commit into
masterfrom
fix/lib-sh-shellcheck-shebang

Conversation

@grimaldi89

Copy link
Copy Markdown
Owner

Summary

CI broke after #12 merged: make lint fails with SC2148 on tests/lib.sh because it's meant to be sourced (not executed directly) and intentionally has no shebang. This passed locally before commit only because make lint scopes to git ls-files '*.sh', which skips untracked files — the check was accidentally never run against the tracked version of this file until it landed on master.

Fix: add the # shellcheck shell=bash directive shellcheck recommends for sourced-only scripts.

Test plan

  • make lint passes
  • make test passes (all functional tests green)

🤖 Generated with Claude Code

tests/lib.sh is meant to be sourced, not executed directly, so it
intentionally has no shebang. shellcheck flags that as SC2148 once the
file is actually git-tracked — it passed locally before commit only
because `make lint` scopes to `git ls-files '*.sh'`, which skips
untracked files. Add the `# shellcheck shell=bash` directive shellcheck
recommends for sourced-only scripts instead.
@grimaldi89
grimaldi89 merged commit 0cc63ca into master Jul 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant