-
Notifications
You must be signed in to change notification settings - Fork 623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: improve doc checker #4782
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4782 +/- ##
==========================================
- Coverage 91.88% 91.88% -0.01%
==========================================
Files 486 486
Lines 41340 41339 -1
Branches 5325 5325
==========================================
- Hits 37987 37986 -1
Misses 3296 3296
Partials 57 57 ☔ View full report in Codecov by Sentry. |
@@ -19,7 +19,7 @@ | |||
"lint:circular": "deno run --allow-env --allow-read --allow-net=deno.land,jsr.io ./_tools/check_circular_package_dependencies.ts", | |||
"lint:mod-exports": "deno run --allow-env --allow-read ./_tools/check_mod_exports.ts", | |||
"lint:tools-types": "deno check _tools/*.ts", | |||
"lint:docs": "deno run -A _tools/check_docs.ts && deno doc --lint collections/mod.ts bytes/mod.ts datetime/mod.ts internal/mod.ts media_types/mod.ts url/mod.ts", | |||
"lint:docs": "deno doc --lint collections/mod.ts bytes/mod.ts datetime/mod.ts internal/mod.ts media_types/mod.ts url/mod.ts && deno run -A _tools/check_docs.ts", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By swapping the order of commands, we know that document.jsDoc
is defined.
On second thought, do we want to check that even variables have examples? |
hmm, I don't think every variable needs examples.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR:
lint:docs
task sodocument.jsDoc
is known to be defined in the doc checker.document
.