avoid_setters_without_getters false positive for Angular components #58039
Labels
area-devexp
For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.
customer-google3
devexp-linter
Issues with the analyzer's support for the linter package
linter-false-positive
P3
A lower priority bug or feature request
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
https://dart-lang.github.io/linter/lints/avoid_setters_without_getters.html corresponds to https://dart.dev/guides/language/effective-dart/design#dont-define-a-setter-without-a-corresponding-getter, except that the Effective Dart rule has an exception for Angular components.
We could avoid those false positives by allowing setters without getters when there is an annotation
Component
.What do you think, please?
The text was updated successfully, but these errors were encountered: