Skip to content

fix: resolve ShellCheck lint failures in CI - #3

Merged
asainz merged 1 commit into
mainfrom
fix-shellcheck-lint-errors
Jul 4, 2026
Merged

fix: resolve ShellCheck lint failures in CI#3
asainz merged 1 commit into
mainfrom
fix-shellcheck-lint-errors

Conversation

@asainz

@asainz asainz commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Current problem

The Lint workflow has been failing on every push: scripts/dock.sh declares a #!/bin/sh shebang but uses bash-only syntax (function keyword, [[ ]], arrays, declare), so ShellCheck evaluated it against POSIX sh rules and flagged the bash-isms as violations. dotfiles/.zshrc had an unquoted source path and two SC1090 warnings for inherently dynamic source paths. scripts/gdone.zsh is a zsh script, which ShellCheck cannot parse at all (SC1071), failing the job outright.

Proposed solution

Correct dock.sh's shebang to #!/bin/bash to match the syntax it actually uses, quote the offending variables in .zshrc and dock.sh, silence the two unavoidable SC1090 false positives with directives, and exclude gdone.zsh from the workflow's ShellCheck scan since the tool doesn't support zsh.

# Current problem

The Lint workflow has been failing on every push: scripts/dock.sh declares a #!/bin/sh shebang but uses bash-only syntax (function keyword, [[ ]], arrays, declare), so ShellCheck evaluated it against POSIX sh rules and flagged the bash-isms as violations. dotfiles/.zshrc had an unquoted source path and two SC1090 warnings for inherently dynamic source paths. scripts/gdone.zsh is a zsh script, which ShellCheck cannot parse at all (SC1071), failing the job outright.

# Proposed solution

Correct dock.sh's shebang to #!/bin/bash to match the syntax it actually uses, quote the offending variables in .zshrc and dock.sh, silence the two unavoidable SC1090 false positives with directives, and exclude gdone.zsh from the workflow's ShellCheck scan since the tool doesn't support zsh.
@asainz
asainz merged commit 80c694e into main Jul 4, 2026
6 checks passed
@asainz
asainz deleted the fix-shellcheck-lint-errors branch July 4, 2026 11:02
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