Skip to content
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

Ignore hidden projects #272

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Rexios80
Copy link

Fixes #271

Copy link

vercel bot commented Sep 12, 2024

@Rexios80 is attempting to deploy a commit to the Invertase Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

docs-page bot commented Sep 12, 2024

To view this pull requests documentation preview, visit the following URL:

docs.custom-lint.dev/~272

Documentation is deployed and generated using docs.page.

@CLAassistant
Copy link

CLAassistant commented Sep 12, 2024

CLA assistant check
All committers have signed the CLA.

@@ -424,6 +424,11 @@ Iterable<String> _findRoots(String path) sync* {
final directory = Directory(path);

yield* directory.listSync(recursive: true).whereType<File>().where((file) {
final relativePathSegments = split(relative(file.path));
Copy link
Collaborator

@rrousselGit rrousselGit Sep 12, 2024

Choose a reason for hiding this comment

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

I think the correct fix is to remove this and the isChildFromCache logic and always return packageConfig.existsSync

Copy link
Author

Choose a reason for hiding this comment

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

This seems to work. Thanks!

Copy link
Collaborator

@rrousselGit rrousselGit left a comment

Choose a reason for hiding this comment

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

Thanks! We'd need a test though :)

@Rexios80
Copy link
Author

Do we still need a test for this? Is there an existing test I can modify?

@rrousselGit
Copy link
Collaborator

We always need tests :)

You can modify the one that was added in the previous attempt at fixing this issue: 773b7ef

@Rexios80
Copy link
Author

@rrousselGit I updated the test and double checked that it fails without the fix

@Rexios80
Copy link
Author

@rrousselGit can we get this merged?

@rrousselGit
Copy link
Collaborator

I'll fix the CI tomorrow. We'll then see if this PR doesn't cause any regression

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PathNotFoundException when running dart run custom_lint
3 participants