Skip to content

Support recursive ** glob patterns via globstar - #42

Closed
AnHeuermann wants to merge 1 commit into
PHPCSStandards:developfrom
AnHeuermann:develop
Closed

Support recursive ** glob patterns via globstar#42
AnHeuermann wants to merge 1 commit into
PHPCSStandards:developfrom
AnHeuermann:develop

Conversation

@AnHeuermann

Copy link
Copy Markdown

Issue

Fixes #41.

Changes

The pattern input was expanded with unquoted bash pathname expansion without shopt -s globstar, so ** collapsed to a single * and only matched one directory level. This made it impossible to validate a filename at arbitrary depth (e.g. **/phpunit.xml).

Enable shopt -s globstar in every step that expands $GLOB_PATTERN (List files, well-formedness, local schema, remote schema) so ** matches across directory levels.

Add recursive-glob test fixtures (valid files at depths 0/1/2, plus a variant whose only invalid file sits two levels deep) and matrix entries covering both well-formedness and local-XSD validation. Document the feature in the README.

The `pattern` input was expanded with unquoted bash pathname expansion
without `shopt -s globstar`, so `**` collapsed to a single `*` and only
matched one directory level. This made it impossible to validate a
filename at arbitrary depth (e.g. `**/phpunit.xml`).

Enable `shopt -s globstar` in every step that expands `$GLOB_PATTERN`
(List files, well-formedness, local schema, remote schema) so `**`
matches across directory levels.

Add recursive-glob test fixtures (valid files at depths 0/1/2, plus a
variant whose only invalid file sits two levels deep) and matrix entries
covering both well-formedness and local-XSD validation. Document the
feature in the README.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jrfnl

jrfnl commented Jul 2, 2026

Copy link
Copy Markdown
Member

@AnHeuermann I appreciate your willingness to contribute, but AI usage is not acceptable in any form, which is why I will be closing this PR.

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.

Support recursive glob patterns (**) — enable globstar

2 participants