-
Notifications
You must be signed in to change notification settings - Fork 7
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
FED-2444 Null safety preparation for conditional prop function calls #285
Conversation
Security InsightsNo security relevant content was detected by automated scans. Action Items
Questions or Comments? Reach out on Slack: #support-infosec. |
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.
Looking good, left some comments on cases to handle and tests
test/dart3_suggestors/null_safety_prep/fn_prop_null_aware_call_suggestor_test.dart
Show resolved
Hide resolved
lib/src/dart3_suggestors/null_safety_prep/fn_prop_null_aware_call_suggestor.dart
Outdated
Show resolved
Hide resolved
lib/src/dart3_suggestors/null_safety_prep/fn_prop_null_aware_call_suggestor.dart
Outdated
Show resolved
Hide resolved
test/dart3_suggestors/null_safety_prep/fn_prop_null_aware_call_suggestor_test.dart
Show resolved
Hide resolved
lib/src/dart3_suggestors/null_safety_prep/fn_prop_null_aware_call_suggestor.dart
Outdated
Show resolved
Hide resolved
test/dart3_suggestors/null_safety_prep/fn_prop_null_aware_call_suggestor_test.dart
Show resolved
Hide resolved
All feedback addressed! |
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.
Thanks for addressing that feedback! Just one more small comment, otherwise LGTM; I also tested it locally and it works great!
lib/src/dart3_suggestors/null_safety_prep/fn_prop_null_aware_call_suggestor.dart
Outdated
Show resolved
Hide resolved
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.
+10
…ED-2444_null-aware-fn-prop-calls
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.
+10
@Workiva/release-management-p
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.
+1 from RM
Motivation
Functions passed in as prop values are often null checked before being called using patterns that do not migrate nicely to null-safety - requiring the use of the
!
assertion like so:Changes
?
operatornull_safety_prep
executable.What it does
Before
After