-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Lint for missing doc-comments on public declarations #57203
Comments
👍 I've been thinking about this. I chimed in on the dartdoc issue. By public do you mean non-package private or do you mean non-package private and in |
Ideally there would be two rules.
|
Regarding:
All the variations are interesting actually. From my perspective maybe the best to start with would be one that aligns with what
|
I'm not sure I understand 1b) |
I think there's some confusion (mine included) on what constitutes package API. My temptation is to start with a lint that is consistent with dartdoc (more on that perspective here: dart-lang/dartdoc#284). Whether we want a more strict variation down the line is an open question. |
A stab at wording: DO provide doc comments for all public APIs. As described in the pub package layout doc, public APIs consist in everything in your package's For example, given
it's API includes:
All public API members should be documented with Good:
Bad:
Advice for writing good doc comments can be found in the Doc Writing Guidelines. |
I think it's a proper defined set and a good starting point. I guess everything else will require a longer discussion. I hope there will be an extended lint which lists all elements not starting with _ |
This one is implemented as |
Public declarations should have a doc comment and it would be great if the linter could list missing comments.
The text was updated successfully, but these errors were encountered: