Repository navigation
chore(deps-dev): run docov 0.2.2 at its strictest and document everything - #169
Merged
Merged
Conversation
…hing - bump @docov/cli to 0.2.2, which leaves async functions out of require-throws - count every module-level declaration, member, global, CommonJS member and @typedef, not just exports - require a @file block per file, an @example and a description on every item, @PARAM and {type}s on every function, and @public on every export - fail on any undocumented item and on docov-ignore comments that do nothing - turn on require-throws and tsdoc-links - define @file in tsdoc.json - write the docs those checks asked for, and regenerate the types from them - name translate's parameter legacyName in its docs page, as the code does
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
bnb
approved these changes
Nov 21, 2026
bnb
approved these changes
Nov 21, 2026
bnb
approved these changes
Nov 21, 2026
Draft
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This moves docov to 0.2.2 and turns on every option and rule nodevu can use, at its strictest, then writes the docs they ask for. docov now counts 93 items, up from 25, and all 93 pass every gate.
Added to docov.jsonc:
scope: all,members: all,commonjsMembers,virtualand globals underexports, so unexported declarations, typedef members, CommonJS members and @typedef blocks all count.fileDocs: require: each file opens with a@fileblock.completeThreshold,examplesThreshold,typesThresholdandreleaseTagsThresholdat 100, andmaxUndocumented: 0.reportUnusedIgnores, andnestedso a package config would be picked up if one is added.require-throws(0.2.2 stops counting a throw in an async function, which rejects) andtsdoc-linksat error.Left off: tsdoc-escapes, tsdoc-html and tsdoc-params. They read every block as TSDoc, which flags the JSDoc
{type}s thatnpm run typesbuilds the types from, plus JSDoc's[optional]and dotted@paramnames. With the types masked out, escapes and html find nothing and params finds 53 params (37 missing-, 14 optional names, 2 dotted names). They can go on once docov can skip those. Options left at their defaults are already the strictest setting:kinds,access,excludeTags,ignoreDeprecated,skipGeneratedandinherit: tag.Docs: every file got a
@fileblock, every item an@exampleand a description, every export@public, and every function typed and described@params and@returns. 55 items were undocumented and 13 had empty tag descriptions or a missing@returns. The example values were checked by running them against the fixtures snapshot and the static data. The types under*/types/are regenerated from the new JSDoc.Also changed:
tsdoc.jsondefines@file.importbecause opt's test readsrequire()calls out ofindex.jsto check its dependencies.docs/pages/translate.mdnamed translate's parameteralias; it'slegacyName.isInPast's input describeddiffNow(), but the code callsdiff(now). That comment is now the function's JSDoc, which describes what the function does.