-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Break down flutter doctor validations and results #34624
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
jonahwilliams
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.
I do not think we should be leaking the usage implementation throughout all of the doctor code
|
@jonahwilliams One alternative would be to map each I didn't go this route because it seemed a little more complex, but I'm open to any suggestion. However, it does seem that this feature requires each validator to have a usage param key, so that coupling exists as per the feature requirement. I don't see this as leaking implementation detail of the |
We should not do that because it will prevent us from making doctor extensible. |
|
I incorporated the feedback based on the discussion. PTAL |
|
PTAL |
tvolkert
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
jonahwilliams
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
Description
Break down the result of
flutter doctorand report the result of each validation in the usage params.Related Issues
#26029
Tests
I added the following tests:
doctor_test.dartChecklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]). This will ensure a smooth and quick review process.///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?