-
Notifications
You must be signed in to change notification settings - Fork 23
handle prefer_equal_for_default_values
deprecation in 2.19
#786
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
Seems fine to release. It might also be a good reason to evaluate if there are new lints we should include. |
The one consideration I can think of is that if we release a new version of the lint set, and a user moves to the new version without also moving to 2.19, they will lose coverage. |
Generally SGTM, if we do increase the min sdk to 2.19 we should just keep in mind that means users on older SDKs won't get any new lint sets. If we don't increase it then as brian says we lose some coverage on the lint. I would probably suggest moving to a min sdk of 2.19, but I don't know when stable of that is slated for release. If it isn't soonish then we might want to hold off, or make sure we do an earlier release with a last set of changes to the lints that we want people to get prior to 2.19 stable. |
Roughly end of January 2023, is the current plan |
@pq - is this complete? |
In 2.19.0 (as of dart-lang/sdk@289aa50), analyzer produces a warning when colons are used for default values. This makes
prefer_equal_for_default_values
redundant and slated for deprecation (dart-archive/linter#3855).I plan to cherry-pick a linter that doesn't produce a lint for SDKs
>= 2.19.0-0
so we won't double-report but we should still remove this lint from the recommended set. Is it worth apackage:lints
release that only removes this lint for SDKs>= 2.19.0-0
? Other considerations?/cc @bwilkerson @mit-mit @munificent @natebosch @jacob314 @jakemac53 @lrhn @devoncarew @goderbauer
The text was updated successfully, but these errors were encountered: