Skip to content

Lint to end the first paragraph of doc comments with a period. #57202

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

Open
pq opened this issue Mar 17, 2015 · 0 comments
Open

Lint to end the first paragraph of doc comments with a period. #57202

pq opened this issue Mar 17, 2015 · 0 comments
Labels
area-devexp For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages. devexp-linter Issues with the analyzer's support for the linter package linter-lint-request P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug

Comments

@pq
Copy link
Member

pq commented Mar 17, 2015

From the Doc Comment Guidelines:

DO end the first paragraph of your doc comment (the summary) with a period (.).

The first paragraph of a doc comment is special. After that, the content is up to you, although we strongly recommend including code samples.

The first paragraph of any doc comment is a brief, user-oriented description ending with a period. It is not a complete sentence.

The description should help the reader understand whether this bit of API might be useful to them, compared to similar sounding API. Never just repeat the API name; try to restate it to give more information than the name alone provides. Avoid links when possible.

GOOD:

  • Returns true if every element of this collection satisfies the predicate [f].
  • Starts the stopwatch.

BAD:

  • Gets the current time
@pq pq added type-enhancement A request for a change that isn't a bug linter-lint-request labels Mar 17, 2015
@srawlins srawlins added the P3 A lower priority bug or feature request label Oct 11, 2022
@devoncarew devoncarew added devexp-linter Issues with the analyzer's support for the linter package legacy-area-analyzer Use area-devexp instead. labels Nov 18, 2024
@devoncarew devoncarew transferred this issue from dart-archive/linter Nov 18, 2024
@bwilkerson bwilkerson added area-devexp For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages. and removed legacy-area-analyzer Use area-devexp instead. labels Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-devexp For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages. devexp-linter Issues with the analyzer's support for the linter package linter-lint-request P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants