Skip to content

chore: require 100% JSDoc coverage with docov - #129

Merged
botandbang merged 2 commits into
mainfrom
bnb/docov
Oct 30, 2026
Merged

botandbang merged 2 commits into
mainfrom
bnb/docov

Conversation

@botandbang

Copy link
Copy Markdown
Contributor

Adds docov (@docov/cli 0.1.1, pinned) as a root dev dependency and runs it at the end of npm run lint, so the existing lint job in CI fails when anything a module exports lacks JSDoc.

docov.jsonc sets the threshold to 100 and leaves out tests, the vendored anti-slop oxlint plugin, and the generated */types/**. The generated types are left out because TypeScript 7 drops @typedef descriptions from its declaration output (tsc 5.9 keeps them), so those files can't reach 100% from the source.

Five exports had no JSDoc: the dev helpers in core/util/dev/ (beforeEachTemplate, at, write), static/util/dev/write.js, and the docs theme's Navigation.jsx. Two of them already had // comments, which are now /** */ blocks. The README's development section mentions the new check.

@socket-security

socket-security Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​docov/​cli@​0.1.1501008388100

View full report

@botandbang
botandbang merged commit 1d80890 into main Oct 30, 2026
38 checks passed
@botandbang
botandbang deleted the bnb/docov branch October 30, 2026 20:18
@nodevu-ci nodevu-ci Bot mentioned this pull request Oct 30, 2026
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