-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[flutter_tools] migrate project-validate to analyze --suggestions #106149
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
[flutter_tools] migrate project-validate to analyze --suggestions #106149
Conversation
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.
From reading the code, it sounds like it's not the "current" project, but whatever project is at the path pointed to by this option, right?
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.
Can I suggest you make this usage consistent with the rest of flutter analyze (from a brief look at the code, there's a --current-package flag, that defaults to on, and then the argResults.rest is parsed as directories or files and canonicalized)
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.
style nit: put this else on the previous line
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.
I think this can be declared where it is set, on line 141. If someone later adds code that tries to reference this outside the scope where it's initialized, it will be a runtime error that the compiler can't catch.
d882f6b to
8a62570
Compare
christopherfujino
left a comment
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.
LGTM
#2885
As suggested by the team this should be a flag inside
flutter analyzeinstead of a new commandPre-launch Checklist
///).