Matches strings against configurable strings, globs, regular expressions, and/or functions
76
{
"context": "Checks how well the solution leans on anymatch to build include/exclude filters that honor negated glob patterns and provide a reusable predicate for repeated path filtering. Emphasizes correct use of anymatch APIs rather than custom glob logic.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Anymatch usage",
"description": "Uses the anymatch API (direct call or curried matcher) to evaluate glob patterns instead of hand-rolled string or regex checks when filtering paths.",
"max_score": 30
},
{
"name": "Negated globs",
"description": "Applies anymatch's support for globs prefixed with '!' so that any candidate matching a negated pattern is excluded even if it matches a positive include.",
"max_score": 30
},
{
"name": "Positive gating",
"description": "Ensures candidates are only accepted when they match at least one positive glob pattern per spec expectations, not merely because they avoid negated patterns.",
"max_score": 20
},
{
"name": "Reusable predicate",
"description": "Builds a reusable predicate via anymatch (e.g., calling anymatch with patterns once and reusing the returned matcher) rather than rebuilding matchers on every path check.",
"max_score": 20
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-anymatch