Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@devoncarew
Copy link
Contributor

  • 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)

@flutter-dashboard
Copy link

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.

Copy link
Member

@zanderso zanderso left a 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!

Iterable<IoNode> get walk;
}

extension DirectoryList on Directory {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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.

Copy link
Contributor Author

@devoncarew devoncarew Jul 12, 2021

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).

Copy link
Member

@zanderso zanderso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@devoncarew devoncarew merged commit b68786a into flutter:master Jul 12, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 13, 2021
moffatman pushed a commit to moffatman/engine that referenced this pull request Aug 5, 2021
update the analysis options for tools/licenses
naudzghebre pushed a commit to naudzghebre/engine that referenced this pull request Sep 2, 2021
update the analysis options for tools/licenses
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants