Provide lint for forgotten fields in props
petrnymsa opened this issue · comments
Petr Nymsa commented
It would be nice to have some kind of lint, which will warn about the forgotten field in props
. Most of the time, any public field of the class has to be included in props
.
We have some automation with help of extensions in IDE for generating props but it cant prevent bugs by forgetting to update the props field.
Dmitry Zhifarsky commented
A lint rule to validate forgotten fields is now available in DCM https://dartcodemetrics.dev/docs/rules/common/list-all-equatable-fields. Feedback is very welcome!
Felix Angelov commented
Thanks so much @incendial 💯