Skip to content

docs(config): scope the exclude_commands coverage claim to what is peeled - #3803

Merged
aeppling merged 1 commit into
rtk-ai:developfrom
KuSh:docs/exclude-commands-known-gaps
Sep 1, 2026
Merged

aeppling merged 1 commit into
rtk-ai:developfrom
KuSh:docs/exclude-commands-known-gaps

Conversation

@KuSh

@KuSh KuSh commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #3749, addressing @aeppling's review nitpick. Docs only, no behaviour change.

The problem

configuration.md claimed 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:

An entry names a tool RTK has a filter for, and covers the wrapper, interpreter and path spellings of it.

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 develop at e533c40 (the #3749 merge), by probing rewrite_command with the entry in place:

["head"]           head -20 f.txt          -> rtk read f.txt --max-lines 20   GAP
["head"]           head f.txt              -> excluded                        (no line range)
["tail"]           tail -n 5 f.txt         -> rtk read f.txt --tail-lines 5   GAP
["gradlew"]        gradlew.bat build       -> rtk gradlew build               GAP
["gradlew"]        ./gradlew build         -> excluded
["gradlew"]        gradlew build           -> excluded
["mvn"]            mvnw.cmd test           -> rtk mvn test                    GAP
["golangci-lint"]  golangci run ./...      -> rtk golangci-lint run ./...     GAP
["golangci-lint"]  golangci-lint run ./... -> excluded

mvnw.cmd is a fourth instance of the same .bat/.cmd cause as gradlew.bat, found while confirming row 2, so the table names both tools.

The documented workaround was verified too, since it is not symmetric:

["golangci"]                   golangci run ./...      -> excluded
["golangci"]                   golangci-lint run ./... -> rewritten   <- both entries needed
["golangci-lint", "golangci"]  both forms              -> excluded

Causes

docs/usage/FEATURES.md needed no change — its French text was already scoped to "le wrapper, l'interpreteur ou le chemin".

…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
aeppling merged commit 988c019 into rtk-ai:develop Sep 1, 2026
10 of 11 checks passed
@rtk-release-bot rtk-release-bot Bot mentioned this pull request Sep 1, 2026
@KuSh
KuSh deleted the docs/exclude-commands-known-gaps branch December 1, 2026 07:44
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.

2 participants