-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider prefer_mixins
#743
Comments
Many times, the class should be declared as I believe new rules are being proposed in the language repo to prohibit mixing in non-mixin classes, so one side-effect is that the API author will be notified that they're not using |
As it stands, the lint is still not compatible with flutter's code, see dart-lang/sdk#45343. Some solutions have been proposed, but not implemented, see: |
Depending on how dart-lang/sdk#59039 gets resolved this may become obsolete. |
The lint has been removed. |
As far as I can tell, this lint still exists [1] and from a recent discussion [2] it sounded like it was still relevant. [1] https://dart-lang.github.io/linter/lints/prefer_mixin.html |
ACK, must have mistyped something. |
Closing - it's not clear this will help people in a pre-3.0 codebase or in a post-3.0 codebase. |
We had initially selected
prefer_mixins
for inclusion in recommended lints, however ran into some issues that need resolving first, including:ChangeNotifier
andWidgetsBindingObserver
, enable lint in flutter codebase for dogfoodingThe text was updated successfully, but these errors were encountered: