-
Notifications
You must be signed in to change notification settings - Fork 170
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
[Class modifiers] Linter implementation #3917
Comments
The spec says
and so we should look at lints that treat abstract classes specially. One such lint is |
You mean |
Ha! Yes, absolutely. 😬 EDIT: fixed. Thanks! |
👍 I wonder if one_member_abstracts still carries its weight. I added that corresponding rule to "Effective Dart" back in the days when many programmers still wrote Java in whatever language they were using and weren't comfortable with closures. These days, it seems like everyone is pretty fluent with lambdas and aren't likely to think they need to write an entire interface just for a single operation any more. |
I wonder this too. I'm not sure it merits deprecation quite but just shy maybe? In any event, the initial issue seems settled, we will not upgrade it to be Thanks for the feedback! |
Actually, we'll need to have a test in order to not produce the diagnostic when the |
See: dart-lang/linter#3917 Change-Id: I9652fabcbac37644cfca89227b6830e32a79576d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/279657 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Phil Quitslund <[email protected]>
Closing in favor of individual tracking issues. |
New class modifiers
This issue tracks the linter implementation of the new class modifiers feature.
implicit_reopen
#3920one_member_abstracts
does not lint on sealed classes #3928Specs
The text was updated successfully, but these errors were encountered: