Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Fix false negative in prefer_contains #2830

Merged
merged 6 commits into from
Apr 18, 2023

Conversation

asashour
Copy link
Contributor

Related to the prefer_contains part of dart-lang/sdk#58406

Please note the change is in DartTypeUtilities, which would potentially affect other rules as well.

@google-cla google-cla bot added the cla: yes label Jul 29, 2021
@coveralls
Copy link

coveralls commented Jul 29, 2021

Coverage Status

Coverage: 95.674% (+0.001%) from 95.673% when pulling 3edfed1 on asashour:2662_prefer_contains into f9ad9e4 on dart-lang:main.

@pq pq added linter-false-negative linter-set-recommended Affects a rule in the recommended Dart rule set labels Jul 29, 2021
@srawlins
Copy link
Contributor

srawlins commented Dec 9, 2022

I'd love to test this internally, @asashour , if you want to rebase.

@github-actions github-actions bot removed the linter-set-recommended Affects a rule in the recommended Dart rule set label Dec 9, 2022
@asashour
Copy link
Contributor Author

asashour commented Dec 9, 2022

Conflict was merged. Please note there is an issue with Dart 3.

@srawlins
Copy link
Contributor

All good internally.

@srawlins srawlins merged commit 4c2af04 into dart-archive:main Apr 18, 2023
@asashour asashour deleted the 2662_prefer_contains branch April 18, 2023 07:36
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Aug 23, 2023
* Fix false negative in `prefer_contains`

* restrict for TypeParameterType

* use `typeForInterfaceCheck`

* Rename to `typeToCheck`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

5 participants