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

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 set-recommended Affects a rule in the recommended Dart rule set label May 6, 2023
@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.
@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-lang/linter#4330

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

Fixes dart-lang/linter#4328. Reverts dart-lang/linter#4039 that caused false negatives in non-null-safe mode. And reverts dart-lang/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-lang/linter#4305 and all the existing tests still pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
set-recommended Affects a rule in the recommended Dart rule set
Projects
None yet
Development

Successfully merging this pull request may close these issues.

avoid_function_literals_in_foreach_calls fails to handle legacy types
4 participants