Repository navigation
Stop cataloguing code in the documentation - #171
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Request given in a Claude Code session, 2026-11-27:
|
|
Answering the owner's request:
Self-review: an independent reviewer compared old and new text rule by rule. It found no catalogue left behind, but found references that had been the point. All are fixed, as generic rules where they can be:
I also restored two lists the sweep had cut that name concepts, not code: the services a test must never call, and the app logic that runs for real. Checks: the definition of done passes locally: lint, format, typecheck, |
|
Rebased onto #169's latest commits (fb40f07), which apply #170. Two conflicts in component and hook testing were catalogue lines about No rule document names a room component after the rebase. Lint and format pass. (A first lint run here failed on |
910d123 to
270eb2c
Compare
|
Rebased onto #169's latest commit, 0152eef, which adds Checks: lint and format pass locally. CI's definition of done passed on this head, 270eb2c, in run 46035669259. I first reported a stale pass from the previous commit, and held this back until the right run finished. Marked ready. It's stacked on #169, so merge #169 first. Then I'll retarget this to |
270eb2c to
48aacf2
Compare
|
Rebased onto #169's 1206849, which names the container
Checks: lint and format pass locally. CI's definition of done passed on this head, 48aacf2. |
48aacf2 to
94f221b
Compare
|
Rebased onto #169's dee9d29, which moves how a container is written into After the rebase, no rule document names a room component or |
94f221b to
a5bc47b
Compare
a5bc47b to
c75c727
Compare
c75c727 to
2981b46
Compare
|
@copilot please fix the merge conflicts in this pull request. |
This branch needs a rebase onto |
2981b46 to
817e873
Compare
As the owner asked: a rule says what to do, not where the code already does it. Documents name code only where the name is the point: the file a reader opens or changes, a fact the code owns, or one example a rule needs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Following the new "Referencing code" rule: rules no longer list the files, components, hooks or functions that follow them, nor describe what particular code does today. They keep the files a reader opens or changes, pointers to facts code owns, and at most one example, made generic where it can be. Sidecars are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Restores, in generic terms, what removed examples carried: the readOnly hazard of a served JSON Schema, mutation testing's scope and its .stryker-tmp rule, the provider example's one-module condition, actor.ts, both test suffixes, and a whole component test written in the document. The DraftKey example now passes the repository's lint. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Records the owner's request, why a catalogue of code is a second copy, what counts as the point, and when to reopen it; the document links its sidecar in a closing section. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
817e873 to
2137fe1
Compare
|
Rebased onto |
Stops the rule documents cataloguing the code that follows them, and adds a rule so the habit doesn't come back.
Stacked on #169, since it covers #169's documentation too. Retarget it to
mainonce #169 merges.single-source-of-truth.md, with a new sidecarFoodoes" clauses, and descriptions of what particular code does today. Where a rule needed an example, a made-up one stands in, such asOrderView,Pick<Provider, …>, aDraftKeysnippet or aJoinFormtest.What to look at
.oxlintrc.jsonandvitest.config.ts;Decisions made
readOnlyhazard of a served JSON Schema, mutation testing's scope, and the provider example's "within one module".For the owner to confirm
Nothing.
Verification
🤖 Generated with Claude Code