[flutter_tools] migrate project-validate to analyze --suggestions#106149
[flutter_tools] migrate project-validate to analyze --suggestions#106149auto-submit[bot] merged 11 commits intoflutter:masterfrom
Conversation
There was a problem hiding this comment.
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.
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.
style nit: put this else on the previous line
There was a problem hiding this comment.
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
#2885
As suggested by the team this should be a flag inside
flutter analyzeinstead of a new commandPre-launch Checklist
///).