Address diagnostics from the new 'strict_top_level_inference' lint.
Most of these are mechanical changes. There were a few packages that had hundreds or thousands of violations due to some test code patterns. For these, I addressed the non-test diagnostics and then ignored the lint in the analysis_options config w/ a comment about the remaining issues.
This touches a bit of everything, but the bulk of the changes are in infra, web, and developer sevices code.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
void outOfTestExpect(dynamic actual, Matcher matcher,
[optional] Consider making arguments `Object?` in place of `dynamic` and cast to `dynamic` if we need dynamic behavior. It looks like most of these are effectively treated as `Object?` anyway so we might not end up needing any casts.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
void outOfTestExpect(dynamic actual, Matcher matcher,
[optional] Consider making arguments `Object?` in place of `dynamic` and cast to `dynamic` if we need dynamic behavior. It looks like most of these are effectively treated as `Object?` anyway so we might not end up needing any casts.
For this CL, I mostly tried to use `Object?`, but did use `dynamic` in places where related call sites were already using dynamic.
I'll take a pass through and see if any of the dynamics should change to Object?.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Commit-Queue | +2 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
Thanks for doing this, Devon. I think this is a big win 😄
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
4 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
[lints] address diagnostics related to strict_top_level_inference
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |