StringMatcher
Defines a simple filter that applies to a file and determines whether or not it matches the pattern
__init__(self, match_patterns, negative_match=False):
LLM Docstring
Initialize StringMatcher state from the supplied configuration.
match_patterns:objectregex, matcher, predicate, or iterable of match specifications
negative_match:objectwhether to invert the match result
:returns:NoneNone; the operation mutates state, writes output, or raises by design.
matches(self, f):
LLM Docstring
Evaluate the configured matcher against the input and apply optional negation.
f:objectstring or file path being tested
:returns:boolwhether the input satisfies the matcher after optional negation