-
Notifications
You must be signed in to change notification settings - Fork 6k
update the analysis options for tools/licenses #27339
update the analysis options for tools/licenses #27339
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
zanderso
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.
Thanks for this cleanup!
tools/licenses/lib/filesystem.dart
Outdated
| Iterable<IoNode> get walk; | ||
| } | ||
|
|
||
| extension DirectoryList on Directory { |
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.
Please avoid extension methods: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#avoid-using-extension
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.
It's an extension that's just used in this file. I can change the visibility to private and add a comment?
This is to get around a super odd type hierarchy in filesystem.dart.
I could also change this to a static helper method.
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 updated the call sites to use a static helper method (instead of an extension method).
zanderso
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
update the analysis options for tools/licenses
update the analysis options for tools/licenses
This is an update to #27331; we need to do a little bit of work to the repo to reduce the number of analysis options files. This directory was using a different (and I assume much older) analysis options file from the rest of the repo.
cc @zanderso for review (unless there's someone more familiar with this area)