Repository navigation
docs(config): scope the exclude_commands coverage claim to what is peeled - #3803
Merged
Merged
Conversation
…eled `configuration.md` said an excluded tool "is covered however it is invoked". The stated limits then covered only tools without their own filter, and exactness — leaving three invocation forms of *filtered* tools promised but not delivered. Scope the sentence to the wrapper, interpreter and path spellings that are actually peeled, and table the three that are not, each with its cause: - `head -20 f` / `tail -n 5 f` — the line-range fast path returns before the exclusion is consulted (rtk-ai#2823); `head f` is excluded normally - `gradlew.bat build` / `mvnw.cmd test` — path stripping splits on `/`, so a `.bat`/`.cmd` spelling never reduces to the tool name (rtk-ai#3617) - `golangci run ./...` — `golangci run` is one of the rule's own aliases and is kept whole, so it misses a `golangci-lint` entry Each row verified against a build on `develop` at e533c40, including the documented workaround: `["golangci"]` excludes the alias form but not `golangci-lint run`, so both entries are needed. Docs only, no behaviour change. Co-Authored-By: Claude Opus 5 <[email protected]>
aeppling
approved these changes
Sep 1, 2026
Merged
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.
Follow-up to #3749, addressing @aeppling's review nitpick. Docs only, no behaviour change.
The problem
configuration.mdclaimed an excluded tool "is covered however it is invoked". The limits stated below it covered only tools without their own filter, plus the exactness guarantees — so three invocation forms of filtered tools were promised and not delivered.The fix
Scope the sentence to what is actually peeled, using @aeppling's suggested wording:
Then table the three gaps rather than leaving them implied, each with its cause and tracking item.
Verified
Every row checked against a build on
developate533c40(the #3749 merge), by probingrewrite_commandwith the entry in place:mvnw.cmdis a fourth instance of the same.bat/.cmdcause asgradlew.bat, found while confirming row 2, so the table names both tools.The documented workaround was verified too, since it is not symmetric:
Causes
[hooks] exclude_commandsis bypassed forhead/tail(line-range fast path skips the exclusion check) #2823; fix(hooks): honour exclude_commands for head and tail #3324 is the fix in flight.strip_absolute_pathsplits on/, so a.bat/.cmdspelling is never reduced to the tool name. PR fix(discover): handle Windows paths in command and path normalization #3617 closes it.golangci runis one of the rule's ownrewrite_prefixesaliases, andtool_portiondeliberately keeps a rule-owned subcommand whole sogolangci-lint rundoes not collapse torun. Mapping aliases onto a canonical name would reintroduce the resolved-target matching fix(hooks): match exclude_commands against the peeled command form #3749 rejected, so this is documented rather than fixed.docs/usage/FEATURES.mdneeded no change — its French text was already scoped to "le wrapper, l'interpreteur ou le chemin".