-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[flutter_migrate] base boilerplate files #2694
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
Conversation
stuartmorgan-g
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.
A couple of nits, but otherwise RSLGTM
script/configs/custom_analysis.yaml
Outdated
| - web_benchmarks/testing/test_app | ||
| # Adopts some flutter_tools rules regarding public api docs due to being an | ||
| # extension of the tool and using tools base code. | ||
| - flutter_migrate |
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.
Nit: let's keep this file alphabetized rather than last-added, for simplicity of finding things in it.
|
|
||
| @override | ||
| String toString() => | ||
| 'Exception: $message'; // TODO(ianh): Really this should say "Error". |
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.
Do you want to just change this rather than replicating the TODO?
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.
Yeah, i'll just change it!
These files are largely replicated from the flutter_tools repo with extraneous features selectively stripped out.
Tests are also from flutter_tools.
Although about half of the lib/src/base code is stripped already, it is likely possible to strip out more of the code in these files, though at some point it makes sense to continue with the landing process instead of chasing a minimal set of boilerplate code.