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

Use real globbing when defining ClassSet #405

Open
benr77 opened this issue Aug 9, 2023 · 0 comments
Open

Use real globbing when defining ClassSet #405

benr77 opened this issue Aug 9, 2023 · 0 comments

Comments

@benr77
Copy link

benr77 commented Aug 9, 2023

I have test code that lives alongside my production code, in "Tests" sub-directories that I would like to exclude.

It does not appear possible to use real glob syntax "**" to mean "any directory". E.g.

$classSet = ClassSet::fromDir(__DIR__.'/src')
    ->excludePath(__DIR__.'/src/**/Tests/')
;

This does not work and the test files are being included in the analysis.

Thanks!

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

No branches or pull requests

1 participant