Skip to content

Use real globbing when defining ClassSet #405

Open
@benr77

Description

@benr77

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions