Skip to content

ci(quality): measure the documented share of the TypeScript and Svelte code - #53

Merged
ulysse-bonneau-simvia merged 2 commits into
mainfrom
ci/ts-docs
Oct 26, 2026
Merged

ulysse-bonneau-simvia merged 2 commits into
mainfrom
ci/ts-docs

Conversation

@ulysse-bonneau-simvia

@ulysse-bonneau-simvia ulysse-bonneau-simvia commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

The quality-reports job now counts the exported items of src and webviews that have a doc comment, and writes docs-ts.json. The dashboard adds it to the Python docstrings in the Docs score.

  • Read: .ts, .tsx, .js, .jsx and Svelte components. A Svelte component is one item, documented by a comment opening the file or its script; the functions it exports from its scripts count like any module.
  • Counted: exported functions, classes, interfaces, types, enums, components, export default Name and export { Name }, and the public methods of exported classes.
  • Skipped: tests, .d.ts, stories, config files, build output.

Today: 86 of 183 documented (47%), against 56.9% for the Python code alone. The step was run as written on csauto's identical workflow.

The quality-reports job counts the exported functions, classes, types and components of src and webviews that have a JSDoc comment (docs-ts.json), next to the Python docstrings. Today: 78 of 175.
The quality-reports job now runs the shared docs-count script: exported items of .ts, .tsx, .js, .jsx and Svelte components, public methods of exported classes, components wrapped in memo or forwardRef, export default Name and export { Name }. Today: 86 of 183.
@ulysse-bonneau-simvia ulysse-bonneau-simvia changed the title ci(quality): measure the documented share of the TypeScript code ci(quality): measure the documented share of the TypeScript and Svelte code Oct 26, 2026
@ulysse-bonneau-simvia
ulysse-bonneau-simvia merged commit 5003eca into main Oct 26, 2026
17 checks passed
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.

1 participant