format-comment
Prefer format comments like sentences.
⚙️ Config
Set ignored-patterns
(default is none) to ignore comments that match the given regular expressions.
Set only-doc-comments
(default is false
) to check only documentation comments (///
).
dart_code_metrics:
...
rules:
...
- format-comment:
only-doc-comments: true
ignored-patterns:
- ^ cSpell.* # Ignores all the comments that start with 'cSpell' (for example: '// cSpell:disable-next-line').