Repository navigation
ci: run lint-shell and fix the file it flags - #195
Merged
Merged
Conversation
qa::lint-shell runs shfmt -d -i 2 -ci over tests/shell, and this file failed it: redirects had a space before the target, and one && sat at the start of a continuation line. CI never ran lint-shell, so the file landed unformatted. Rewritten with shfmt -w; no behaviour change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The workflow ran pre-commit, the nvim checks and the bats suites, but never shfmt or shellcheck, so tests/shell/unit/sync_skills.bats merged unformatted. Run the same just recipe developers use locally, under mise exec --locked like the other steps, so the pinned shfmt and shellcheck from mise.lock decide. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why the change
CI never ran shfmt or shellcheck, so a test file merged unformatted and
just qa::lint-shellfailed on master; this fixes the file and adds the check to CI so it can't happen again.Special things to note
qa.justrecipe developers run locally, so the file list stays in one place.Change outline
Two commits, one per concern:
tests/shell/unit/sync_skills.bats shfmt -w: `> "$x"` → `>"$x"`, trailing && instead of leading .github/workflows/pre-commit.yaml - run: mise exec --locked -- pre-commit run ... --all-files + - run: mise exec --locked -- just -f qa.just lint-shell - run: mise exec --locked -- nvim ... smoke.lualint-shellpasses locally on Windows (Git Bash) with the reformatted file.🤖 Generated with Claude Code