I would like to write a new custom linter rule.
Especially, I want to write a rule that forbids the use of the setState function in flutter.
Is there any solution to customize your linter rules out there?
I would like to write a new custom linter rule.
Especially, I want to write a rule that forbids the use of the setState function in flutter.
Is there any solution to customize your linter rules out there?
Yes, you can certainly do that. But why would you want to ban setState?
Doing this kind of analysis would require an analysis server plugin. There's is an API and a Analyzer Plugin Package to do this as well as a view examples of projects using it.
Examples: