doc: make torb doc --check list the public constructs without a doc comment #311
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Part of #31.
torb doc --checkprints only a count (218 of 2353 public constructs have no doc comment); the doc comment ofcompiler/src/reference/command.trbalready says they are "counted and listed", but nothing lists them. The documentation slices of #31 need the exact list.Source
torb docand tooling/torb-doc.md, "What--checkdoes not fail on"; standard:compiler/CONTRIBUTING.md(doc comments)Goal
--checkprints one line per undocumented required construct, so a worker (and the final strict check) can see what is missing.Acceptance criteria
torb doc --checkprints, before the count line, one line per construct fromReference.missingDocumentation(), sorted, in the formstd/<module>/<file>.trb:<line>: <Type.member or name> has no doc comment(same path/line style as the other findings); the count line stays.compiler/tests/reference.test.trbcovers the listing (one documented and one undocumented required construct).docs/tooling/torb-doc.md("What--checkdoes not fail on" and the example) shows the listing;docs check docsgreen;skills/regenerated.Touches the seed?
No. Doc comments are comments; no syntax change, native, driver flag or std name looked up by the compiler. The doc examples in the new comments are type checked by the existing gate
doc --check --no-run std.Size
One PR, one Conventional Commit:
feat(doc): list the constructs without a doc comment. Sonnet/medium. Independent of the other slices; they use its output.torb doc --checkfail on a public construct without a doc comment #317torb doc --checkfail #31torb doc --checkfail #31[loop:torbscript] refine: goal, acceptance criteria, docs link, seed impact (none) and one-PR size set; independent of the other slices, next: implement (label
ready).[loop:torbscript] claim implement by session:loop-torbscript-20261012 until 2026-10-12T13:04Z
[loop:torbscript] implement:
torb doc --checknow lists each undocumented required construct as<file>:<line>: <anchor> has no doc comment(sorted, before the count line, exit code unchanged); newReference.undocumentedLines(), test inreference.test.trb,docs/tooling/torb-doc.mdand its skill copy updated. Forge CI green on48f5d455(one fix round: the first test hard-coded a wrong line number, squashed to one commit). PR #318, next: review (merge gate argus). Tokens: worker about 100k.torb doc --checkfail on a public construct without a doc comment #317torb doc --checkfail #31