This repository was archived by the owner on Jul 16, 2023. It is now read-only.
This repository was archived by the owner on Jul 16, 2023. It is now read-only.
[BUG] prefer-commenting-analyzer-ignores
- incorrectly treats doc comments as regular comments #1114
Closed
Description
- Dart code metrics version: 5.2.1
- Dart sdk version: 2.18.6
Please show your full configuration:
Configuration
dart_code_metrics:
rules:
- avoid-late-keyword
- prefer-commenting-analyzer-ignores
What did you do? Please include the source code example causing the issue.
/// (some documentation for the property, nothing related to the ignore comment
//ignore: avoid-late-keyword
late bool foo;
What did you expect to happen?
error because the doc comment is not a regular comment, and therefore is unlikely to contain an explanation as to why the rule is being ignored
What actually happened?
no error
Are you willing to submit a pull request to fix this bug?
if it's easy