-
Notifications
You must be signed in to change notification settings - Fork 28.7k
[Preview Only] Update type annotation lints for repository #170435
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
base: master
Are you sure you want to change the base?
Conversation
LGTM but we will land this in a few weeks at a specific time so that we limit disruptions to the tree and don't make cherry picks to/from an upcoming stable release more complicated. Could you post exactly what you ran to auto-generate this so we can reproduce this PR (we won't be able to land this exact one for the reasons above) If there are any ahead of time changes we can make to make this smoother (like the |
This pull request has been changed to a draft. The currently pending flutter-gold status will not be able to resolve until a new commit is pushed or the change is marked ready for review again. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
Thanks for the input, @matanlurey!
Sure, when
Note that the Next, I haven't yet resolved how to update the snippet code. The following command reports a number of testing failures after these steps:
It might also be possible (and it may or may not be appropriate) to disable
Right, I did expect that it would have to be handled like that.
Yes, presumably the best way to change those three locations would be to use the type Next, we could change Later, when we perform the actual changes where local variable type annotations are removed, we just use the freedom to do this. This can be done in one big step or in any number of smaller steps. If it is done in multiple steps then each of them would involve temporarily changing Finally, as part of the big step or the last small step, |
This PR was created to do the same things as #169971, but starting from a fresh commit.
This PR
analysis_options.yaml
to disablealways_specify_types
and enabletype_annotate_public_apis
andomit_obvious_local_variable_types
.LinkedHashMap
constructor invocations.omit_obvious_local_variable_types
usingdart fix --apply --code=...
.