-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.linter-lint-proposaltype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
Describe the rule you'd like to see implemented
The lint should flag comments where there is no space between the slashes (// or ///) and the content of the comment.
This is the style used by Flutter and Dart.
Examples
Bad:
//Bad comment
///Bad doc-commentGood:
// Good comment
/// Good doc commentSome edge cases:
// An empty comment with no spaces after is okay:
//
//
// What about this:
///////////heey
// //Is this alright?
// An empty comment at the end of the file is probably also okay:
///nilsreichardt, ABausG, IoanaAlexandru and Jonas-Sander
Metadata
Metadata
Assignees
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.linter-lint-proposaltype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug