-
Notifications
You must be signed in to change notification settings - Fork 182
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
Add PR check for documentation coverage #686
Comments
Is this motivated by issues that are slipping in? I'd prefer not to complicate the PR process too much if possible. It adds friction to the contribution process. |
It is motivated by issues such as #681. I see it as a way to supplement CI for things that we cannot programmatically test for. Just like we shouldn't allow failing tests to be merged, we also shouldn't allow undocumented exported types to be merged. |
Another way to resolve this issue would be if we could have a CI task that enforced the documentation constraint (failing if it finds any exported type without a docstring). |
I would assume that a checklist would work similar to false-positives in the CI, where the checklist quickly becomes something ignored when it's not relevant. For issue #681, there is the https://doc.rust-lang.org/rustdoc/lints.html
Enabling this for |
Maybe we could use https://doc.rust-lang.org/rustdoc/unstable-features.html#--show-coverage-calculate-the-percentage-of-items-with-documentation (still only in nightly rust-lang/rust#58154 ) to get a sense of coverage and nudge, instead of forcing, our culture in the right way? |
In my opinion, the next steps on this issue should be to run the documentation coverage tool, get it to a point where it passes (either by adding docs or by adding |
This new CI should also include a check that fails for missing links and other errors outputted by |
@gregtatum suggested doing this on a per-module level to split it into smaller pieces and avoid a big PR with bad documentation. |
|
I'm marking this issue as resolved with #955, and the smaller missing docs issues are filed per component. |
In the PR template, we should make a checklist of to-do items that aren't covered elsewhere (CI). Suggestions:Documentation coverage on all new exported typesAdherence to each section of the style guideOthers?UPDATE: See discussion below. Deliverables:
missing_docs
check in a new CI jobThe text was updated successfully, but these errors were encountered: