Skip to content
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

remove deprecated lints in 3.0 #3880

Closed
6 tasks done
Tracked by #50707 ...
pq opened this issue Dec 6, 2022 · 8 comments
Closed
6 tasks done
Tracked by #50707 ...

remove deprecated lints in 3.0 #3880

pq opened this issue Dec 6, 2022 · 8 comments
Labels
P3 A lower priority bug or feature request
Milestone

Comments

@pq
Copy link
Member

pq commented Dec 6, 2022

3.0 would be a good time to remove deprecated lints.

Candidates:

@pq pq added the P3 A lower priority bug or feature request label Dec 6, 2022
@pq pq modified the milestones: Dart 3 beta 2, Dart 3 alpha 1 Dec 6, 2022
@github-actions github-actions bot added the set-recommended Affects a rule in the recommended Dart rule set label Dec 9, 2022
@srawlins
Copy link
Member

I think enable_null_safety should also be removed in 3.0. This rule is being replaced by dart-lang/sdk#50694.

@srawlins
Copy link
Member

I'd also like to remove avoid_null_checks_in_equality_operators, which mostly doesn't make sense under null safety, with a proposed rule: equality_operator_override_with_nullable_parameter

@srawlins
Copy link
Member

None of these have to do with null safety, so they can be deleted even before Google internal is null safe.

(The last one, enable_null_safety, does obviously pertain to null safety, but is not used internally, so it can also be deleted.)

@pq pq mentioned this issue Dec 16, 2022
2 tasks
@github-actions github-actions bot removed the set-recommended Affects a rule in the recommended Dart rule set label Jan 25, 2023
@pq pq changed the title proposal: remove deprecated lints in 3.0 remove deprecated lints in 3.0 Jan 26, 2023
@mit-mit
Copy link
Member

mit-mit commented Feb 9, 2023

Can we also remove default_list_constructor ?

@mit-mit
Copy link
Member

mit-mit commented Feb 9, 2023

Also, how is the present issue different from dart-lang/lints#95 ?

@pq
Copy link
Member Author

pq commented Feb 9, 2023

Can we also remove default_list_constructor ?

I think so? @bwilkerson?

Also, how is the present issue different from dart-lang/lints#95 ?

This issue tracks the removal of the lint implementations from the linter. dart-lang/lints#95 is about removing newly removed/deprecated lints from the published lint sets.

@bwilkerson
Copy link
Member

The default_list_constructor diagnostic is a compile-time error, not a lint, but I believe that we can remove it. It won't be reported in 3.0 because it looks for invocations of the default constructor, but the default constructor is gone so there can't be an invocation of it (the error instead is "The class 'List' doesn't have an unnamed constructor.").

@pq
Copy link
Member Author

pq commented Mar 13, 2023

Closing linter side as complete.

@pq pq closed this as completed Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 A lower priority bug or feature request
Projects
None yet
Development

No branches or pull requests

4 participants