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

Don't check if iterable is nullable, what matters is null-aware calls #4330

Merged
merged 1 commit into from
May 8, 2023

Conversation

oprypin
Copy link
Contributor

@oprypin oprypin commented May 6, 2023

@github-actions github-actions bot added the linter-set-recommended Affects a rule in the recommended Dart rule set label May 6, 2023
@oprypin oprypin force-pushed the foreach_calls_no_null branch from 25bd5bb to b305085 Compare May 6, 2023 15:32
@coveralls
Copy link

coveralls commented May 6, 2023

Coverage Status

Coverage: 96.486% (-0.0004%) from 96.486% when pulling 27cf88f on foreach_calls_no_null into 997671c on main.

Fixes #4328. Reverts #4039 that caused false negatives in non-null-safe mode. And reverts #2752 along with it because it was not the exact right fix in the first place. Null-aware calls are since handled by #4305 and all the existing tests still pass.
@oprypin oprypin force-pushed the foreach_calls_no_null branch from b305085 to 27cf88f Compare May 6, 2023 15:51
@pq pq merged commit 599b528 into main May 8, 2023
@pq pq deleted the foreach_calls_no_null branch May 8, 2023 17:12
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request May 9, 2023
See: dart-archive/linter#4330

Change-Id: I9d891d5e3cffe594d0f884eae56dfed7647e09db
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/302040
Reviewed-by: Oleh Prypin <[email protected]>
Commit-Queue: Phil Quitslund <[email protected]>
Reviewed-by: Brian Wilkerson <[email protected]>
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Aug 23, 2023
…dart-archive/linter#4330)

Fixes dart-lang/linter#4328. Reverts dart-archive/linter#4039 that caused false negatives in non-null-safe mode. And reverts dart-archive/linter#2752 along with it because it was not the exact right fix in the first place. Null-aware calls are since handled by dart-archive/linter#4305 and all the existing tests still pass.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
linter-set-recommended Affects a rule in the recommended Dart rule set
Development

Successfully merging this pull request may close these issues.

avoid_function_literals_in_foreach_calls fails to handle legacy types
4 participants