Open Pante opened 1 week ago
Yikes, I think this is a great idea. I'm a bit fearful to see what existing issues this catches...
I'll add one suggestion though: if the comment starts with ignore:
(so, // ignore:
), allow it; if there is a static issue with a line in the middle of a big doc comment, the only way to ignore the individual line is to add a //
comment precisely as shown above.
avoid_mixing_comment_identifiers
Description
It is possible to accidentally mix dartdoc comments and normal comments. This is especially true when you have a long chunk of documentation. Ideally the lint will be able to identify such erroneous usage of
//
s in the middle of///
s.Details
Give a detailed description that should provide context and motivation. Ideally this could be used directly in the rule's documentation.
Kind
Bad Examples
Add a few examples that demonstrate where this lint should fire.
Good Examples
Add a few examples that demonstrate a “good” adoption of this lint’s principle.
Discussion
Add any other motivation or useful context here.