Uh oh!
There was an error while loading. Please reload this page.
docs: stop instructing shfmt -w, and scope make sa correctly - #863
Merged
Conversation
Eight places told contributors to run `shfmt -w .`. shfmt disagrees with .editorconfig on this repo two ways -- indent_size = unset is read as tabs for tests/acceptance/**, and `-continued strings get collapsed past the 120-char limit -- so following that instruction reformats 146 tracked files and breaks make lint. make lint is the formatting authority; record how to check for new drift instead. make sa built its file list with `find .`, which descends into .claude/worktrees/ (linting the whole tree once per linked worktree) and whose *.sh glob never covered the extensionless entrypoint, bin/pre-commit or bin/create-pr. Take the list from git instead, keeping find as the non-git fallback: 274 files now, including the three that were never checked.
Uh oh!
There was an error while loading. Please reload this page.
Chemaclass added a commit
that referenced
this pull request
Jul 25, 2026
…new test CI caught SC2164/SC1007 in the new test file that 'make sa' had passed. Cause: since #863 the file list comes from 'git ls-files', which only lists TRACKED files, so a brand-new script was invisible locally and first failed in CI -- exactly backwards. Add --others --exclude-standard. Verified by dropping an untracked offending script in the tree: make sa now fails on it.
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 freeto 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.
🤔 Background
Eight places in the contributor docs and skills told contributors to run
shfmt -w .. On this repo that command reformats 146 tracked files and breaksmake lint, because shfmt and.editorconfigdisagree:indent_size = unsetis read as tabs fortests/acceptance/**, and\-continued strings get collapsed pastmax_line_length = 120. Separately,make sanever linted three of the repo's own scripts.💡 Changes
shfmt -w .instruction withmake lintas the formatting authority, and documents how to check for new shfmt drift instead of expecting none.make sa's file list to git rather thanfind ., which descended into.claude/worktrees/and re-linted the whole tree once per linked worktree.make sanow also covers the extensionlessbashunit,bin/pre-commitandbin/create-pr— 274 files, up from 271. All pass.