[FileSystem] Add --filter option to keep only files matching all given patterns - #8419
Merged
Conversation
TomasVotruba
force-pushed
the
add-filter-option
branch
from
August 30, 2026 20:45
0f99556 to
8b72cc4
Compare
Makes --filter=*/Controller/* behave like --filter=/Controller/, so a glob containing a "/" is matched against the full path instead of the basename. Claude-Session: https://claude.ai/code/session_01J73DBF9SQvcgFnsBhr71cF
TomasVotruba
force-pushed
the
add-filter-option
branch
from
September 1, 2026 21:46
8b72cc4 to
5d86589
Compare
Emits a deprecation warning when --only-suffix is used and points users to --filter, which covers the same case via --filter="*Controller.php". Claude-Session: https://claude.ai/code/session_01J73DBF9SQvcgFnsBhr71cF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
--filteroption to theprocesscommand, alongside the existing--only-suffix.It keeps only files matching all comma-separated patterns (AND). Three pattern kinds:
tests- basename ends inTest.phporTestCase.php*- glob matched against the basename, e.g.*Repository.php/Controller/The selection is folded into the per-file cache scope, so filtered and full runs coexist without poisoning each other, same as
--only-suffix. It also marks the run as narrowed, so unused-skip reporting stays off.