-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Meta linter rules #57364
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
Comments
+1. It would be nice to have "Loose Dart" more or less match only Dart style guide. |
👍 At first blush, I see a couple of sub-tasks:
|
"Strict" vs. "loose" seems hard to define. Maybe we should be explicit about whether the rules are in Effective Dart and, if so, whether they're DO/DON'T or just PREFER/AVOID/CONSIDER. Here's a first cut (cc @munificent):
|
We've talked many times about supporting some kind of user-defined lint group mechanism, and I think it makes a lot of sense. My personal preference would be to support an arbitrary number of groups rather than define a fixed number of hard coded groups, but that would be more work, so it probably won't happen. One problem you'll run into (by not creating user-definable groups) is the issue of backward compatibility. If you define a "common-errors" group, and then someone writes a new lint that catches a common error so you add it to the group, that can be a breaking change that blocks roles into g3. You basically need to accept responsibility for fixing g3 breakage before adding new lints to any of the groups. |
@bwilkerson if line-item vetoes are possible, then fixing breakages should be easier. |
Maybe version numbers for groups can help like with dependencies, then people can define if they want to explicitly allow new versions or use an open range to allow new rules automatically. |
Is there any list which maps Effective Dart rules already? |
I'll just note that Effective Dart is often updated when the language changes, so someone would need to be able to commit to maintaining this lint set. |
There are quite a few rules that are implemented after Effective Dart, I think most of them have names that start with |
I think this can be closed now that Dart has core/recommended lints and Flutter has its own linter (based on recommended). |
I agree, thanks. I don't love our existing groups (style, error, pub, ...) and think those could use some shoring up but if we want to continue that conversation, let's start new targeted issues. Cheers! |
The list of linter rules is overwhelmingly long. How about creating two meta rules:
@kevmoo @kwalrath @lukechurch
The text was updated successfully, but these errors were encountered: