-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[various] Remove unnecessary null checks #4060
Merged
auto-submit
merged 9 commits into
flutter:main
from
stuartmorgan:analysis-options-null-check
May 22, 2023
Merged
[various] Remove unnecessary null checks #4060
auto-submit
merged 9 commits into
flutter:main
from
stuartmorgan:analysis-options-null-check
May 22, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stuartmorgan
requested review from
cbracken,
cyanglaz,
hellohuanlin,
camsim99,
gmackall,
reidbaker,
ditman,
bparrishMines,
yjbanov,
keyonghan,
domesticmouse and
Piinks
as code owners
May 22, 2023 14:25
github-actions
bot
added
p: camera
p: dynamic_layouts
The dynamic_layouts package
p: flutter_markdown
p: flutter_migrate
p: google_maps_flutter
p: google_sign_in
p: in_app_purchase
p: ios_platform_images
p: metrics_center
p: path_provider
p: quick_actions
p: url_launcher
p: web_benchmarks
labels
May 22, 2023
reidbaker
approved these changes
May 22, 2023
domesticmouse
approved these changes
May 22, 2023
stuartmorgan
added
the
autosubmit
Merge PR when tree becomes green via auto submit App
label
May 22, 2023
auto-submit
bot
removed
the
autosubmit
Merge PR when tree becomes green via auto submit App
label
May 22, 2023
auto label is removed for flutter/packages, pr: 4060, due to - The status or check suite Windows win32-platform_tests master - packages has failed. Please fix the issues identified (or deflake) before re-applying this label. |
cbracken
approved these changes
May 22, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
stuartmorgan
added
the
autosubmit
Merge PR when tree becomes green via auto submit App
label
May 22, 2023
sybrands-place
pushed a commit
to sybrands-place/packages
that referenced
this pull request
May 23, 2023
* main: (104 commits) [various] Remove unnecessary null checks (flutter#4060) [ci] Add a legacy Android build-all test (flutter#4005) Roll Flutter from ab57304 to 3437189 (5 revisions) (flutter#4062) [go_router] Nested stateful navigation with ShellRoute (flutter#2650) [go_router] Nested stateful navigation with ShellRoute (flutter#2650) [go_router] Nested stateful navigation with ShellRoute (flutter#2650) [in_app_purchases] Fix mismatching method signature strings (flutter#4040) [go_router] Nested stateful navigation with ShellRoute (flutter#2650) [go_router] Nested stateful navigation with ShellRoute (flutter#2650) [go_router] Nested stateful navigation with ShellRoute (flutter#2650) Roll Flutter from 077d644 to ab57304 (18 revisions) (flutter#4051) Roll Flutter from 5ae6438 to 077d644 (23 revisions) (flutter#4043) [local_auth] Migrate iOS to Pigeon (flutter#3974) [go_router] fix context extension for replaceNamed (flutter#3927) [image_picker] Fix crash due to `SecurityException` (flutter#4004) Roll Flutter from d0d1feb to 5ae6438 (42 revisions) (flutter#4038) [ci] Lower iOS LUCI timeouts (flutter#4035) [ci] Increase Android sharding (flutter#4029) [flutter_plugin_android_lifecycle] Fix lints (flutter#4030) [rfw] Fix a typo in the API documentation (flutter#4023) ...
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/flutter
that referenced
this pull request
May 23, 2023
auto-submit bot
pushed a commit
to flutter/flutter
that referenced
this pull request
May 23, 2023
flutter/packages@83959fb...d449a17 2023-05-22 stuartmorgan@google.com [various] Remove unnecessary null checks (flutter/packages#4060) 2023-05-22 stuartmorgan@google.com [ci] Add a legacy Android build-all test (flutter/packages#4005) 2023-05-22 engine-flutter-autoroll@skia.org Roll Flutter from ab57304 to 3437189 (5 revisions) (flutter/packages#4062) 2023-05-22 tobias@leafnode.se [go_router] Nested stateful navigation with ShellRoute (flutter/packages#2650) 2023-05-22 tobias@leafnode.se [go_router] Nested stateful navigation with ShellRoute (flutter/packages#2650) 2023-05-22 tobias@leafnode.se [go_router] Nested stateful navigation with ShellRoute (flutter/packages#2650) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
CaseyHillers
pushed a commit
to CaseyHillers/flutter
that referenced
this pull request
May 24, 2023
flutter/packages@83959fb...d449a17 2023-05-22 stuartmorgan@google.com [various] Remove unnecessary null checks (flutter/packages#4060) 2023-05-22 stuartmorgan@google.com [ci] Add a legacy Android build-all test (flutter/packages#4005) 2023-05-22 engine-flutter-autoroll@skia.org Roll Flutter from ab57304 to 3437189 (5 revisions) (flutter/packages#4062) 2023-05-22 tobias@leafnode.se [go_router] Nested stateful navigation with ShellRoute (flutter/packages#2650) 2023-05-22 tobias@leafnode.se [go_router] Nested stateful navigation with ShellRoute (flutter/packages#2650) 2023-05-22 tobias@leafnode.se [go_router] Nested stateful navigation with ShellRoute (flutter/packages#2650) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
This was referenced Jul 7, 2023
11 tasks
11 tasks
JSUYA
added a commit
to JSUYA/plugins
that referenced
this pull request
Mar 6, 2024
Some packages require package upgrade rather than simple modification (ex: google_maps_flutter) Therefore, the rules below are temporarily ignored. Any necessary modifications can be applied in a later PR. flutter/packages#4060 - unnecessary_null_comparison flutter/packages#4067 - unawaited_futures flutter/packages#5717 - dangling_library_doc_comments - no_literal_bool_comparisons - unnecessary_library_directive - use_colored_box - use_enums - use_string_in_part_of_directives
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
autosubmit
Merge PR when tree becomes green via auto submit App
p: camera
p: dynamic_layouts
The dynamic_layouts package
p: flutter_markdown
p: flutter_migrate
p: go_router
p: google_maps_flutter
p: google_sign_in
p: in_app_purchase
p: ios_platform_images
p: metrics_center
p: path_provider
p: quick_actions
p: url_launcher
p: web_benchmarks
p: webview_flutter
platform-android
platform-ios
platform-linux
platform-web
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Removes
unnecessary_null_comparison: ignore
from the repository analysis options. Now that Dart 3 has reached the stable channel, all fully supported customers will be running in strong mode, so the extra null checks are no longer needed. While many packages do support earlier versions, this won't break anyone, it will just mean that people who are both a) using old versions of Flutter and b) violating the API contract by passing null to a non-nullable type, won't get error messages that are as obvious, which is fine for the best-effort support level we give to pre-current-stable versions of Flutter.Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style.///
).