feat(doc): list the constructs without a doc comment #318

Merged
argus merged 1 commit from loop/311-doc-check-list into main 2026-10-12 08:03:24 +00:00
Collaborator

Closes #311

Part of #31. torb doc --check now prints one line per required construct without a doc comment, before the count line: <file>:<line>: <anchor> has no doc comment, sorted by file and line. Exit code unchanged. New Reference.undocumentedLines(); test in compiler/tests/reference.test.trb; docs/tooling/torb-doc.md and its generated skill copy updated.

Seed: not touched (no syntax change, native, driver flag or looked-up std name).

Test: not run locally (no toolchain in the worker, by contract); forge CI runs the gates.

Closes #311 Part of #31. `torb doc --check` now prints one line per required construct without a doc comment, before the count line: `<file>:<line>: <anchor> has no doc comment`, sorted by file and line. Exit code unchanged. New `Reference.undocumentedLines()`; test in `compiler/tests/reference.test.trb`; `docs/tooling/torb-doc.md` and its generated skill copy updated. Seed: not touched (no syntax change, native, driver flag or looked-up std name). Test: not run locally (no toolchain in the worker, by contract); forge CI runs the gates.
feat(doc): list the constructs without a doc comment
Some checks failed
ci / commit messages (pull_request) Successful in 7s
ci / what the change touches (pull_request) Successful in 7s
pdisc / pdisc (pull_request) Successful in 12s
ci / which runners exist (pull_request) Successful in 1s
ci / bootstrap and conformance (windows-x64) (pull_request) Has been skipped
ci / bootstrap and conformance (linux-arm64) (pull_request) Has been skipped
ci / bootstrap and conformance (macos-arm64) (pull_request) Has been skipped
ci / the VS Code extension (editors/vscode) (pull_request) Successful in 13s
ci / bootstrap (linux-x64) (pull_request) Successful in 5m13s
ci / tier B (linux-x64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (windows-x64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (linux-arm64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (macos-arm64) (pull_request) Has been skipped
ci / tools/release-sync and tools/registry (linux-x64) (pull_request) Successful in 1m41s
ci / tier A (linux-x64) (pull_request) Failing after 4m24s
ci / gates (pull_request) Has been cancelled
ci / pack the seed (pull_request) Has been cancelled
ci / archives (pull_request) Has been cancelled
ci / the playground (torb as WebAssembly) (pull_request) Has been cancelled
ci / every host emits the same C (pull_request) Has been cancelled
b06f210ba2
Closes #311
test(doc): take the line of the listing from the model
Some checks failed
ci / commit messages (pull_request) Has been cancelled
ci / what the change touches (pull_request) Has been cancelled
ci / gates (pull_request) Has been cancelled
pdisc / pdisc (pull_request) Has been cancelled
bd95946ec9
orion force-pushed loop/311-doc-check-list from bd95946ec9
Some checks failed
ci / commit messages (pull_request) Has been cancelled
ci / what the change touches (pull_request) Has been cancelled
ci / gates (pull_request) Has been cancelled
pdisc / pdisc (pull_request) Has been cancelled
to 48f5d4553b
Some checks failed
ci / tier A (linux-x64) (pull_request) Successful in 4m3s
ci / the playground (torb as WebAssembly) (pull_request) Successful in 1m53s
ci / every host emits the same C (pull_request) Successful in 4m33s
ci / pack the seed (pull_request) Successful in 10s
ci / archives (pull_request) Has been skipped
ci / gates (pull_request) Successful in 0s
images / cr.torb.dev/torbscript/registry (push) Has been skipped
images / cr.torb.dev/torbscript/release-sync (push) Has been skipped
images / cr.torb.dev/torbscript/site (push) Has been skipped
ci / commit messages (push) Successful in 11s
ci / what the change touches (push) Successful in 9s
pdisc / pdisc (push) Successful in 11s
ci / gates (push) Has been cancelled
ci / which runners exist (push) Has been cancelled
ci / bootstrap (linux-x64) (push) Has been cancelled
ci / tier A (linux-x64) (push) Has been cancelled
ci / tier B (linux-x64) (push) Has been cancelled
ci / tools/release-sync and tools/registry (linux-x64) (push) Has been cancelled
ci / bootstrap and conformance (windows-x64) (push) Has been cancelled
ci / bootstrap and conformance (linux-arm64) (push) Has been cancelled
ci / bootstrap and conformance (macos-arm64) (push) Has been cancelled
ci / cross-compiled on linux-x64 (windows-x64) (push) Has been cancelled
ci / cross-compiled on linux-x64 (linux-arm64) (push) Has been cancelled
ci / cross-compiled on linux-x64 (macos-arm64) (push) Has been cancelled
ci / every host emits the same C (push) Has been cancelled
ci / the VS Code extension (editors/vscode) (push) Has been cancelled
ci / the playground (torb as WebAssembly) (push) Has been cancelled
ci / pack the seed (push) Has been cancelled
ci / archives (push) Has been cancelled
images / cr.torb.dev/torbscript/site:edge (main) (push) Has been cancelled
2026-10-12 07:22:03 +00:00
Compare
argus approved these changes 2026-10-12 08:03:22 +00:00
argus left a comment

Approved. Checklist:

  • Tests: ok. undocumentedLines() is covered in reference.test.trb against the fixture (one undocumented required construct among documented ones, line from the model). CI green on this head (gates, tier A, bootstrap, pdisc).
  • Correctness: ok. The list is printed before the count line, sorted by (path, line, anchor), and the early return for required == 0 is kept. The exit code path is untouched.
  • Scope: ok. Matches #311 (listing only, no failure on missing docs, no seed-relevant change).
  • Docs: ok. docs/tooling/torb-doc.md and its generated skill copy are identical and show the listing in both text and example; pdisc is green.
  • Security/data/workflows: nothing touched.

Non-blocking: the example lines in the docs are illustrative (std/core/option.trb:57 etc.), which is fine as long as they stay marked with ....

Approved. Checklist: - Tests: ok. `undocumentedLines()` is covered in `reference.test.trb` against the fixture (one undocumented required construct among documented ones, line from the model). CI green on this head (gates, tier A, bootstrap, pdisc). - Correctness: ok. The list is printed before the count line, sorted by (path, line, anchor), and the early return for `required == 0` is kept. The exit code path is untouched. - Scope: ok. Matches #311 (listing only, no failure on missing docs, no seed-relevant change). - Docs: ok. `docs/tooling/torb-doc.md` and its generated skill copy are identical and show the listing in both text and example; pdisc is green. - Security/data/workflows: nothing touched. Non-blocking: the example lines in the docs are illustrative (`std/core/option.trb:57` etc.), which is fine as long as they stay marked with `...`.
argus merged commit 48f5d4553b into main 2026-10-12 08:03:24 +00:00
argus deleted branch loop/311-doc-check-list 2026-10-12 08:03:24 +00:00
Sign in to join this conversation.
No reviewers
No labels
loop
ready
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
torbscript/language!318
No description provided.