CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-anymatch

Matches strings against configurable strings, globs, regular expressions, and/or functions

76

1.11x
Overview
Eval results
Files

rubric.jsonevals/scenario-6/

{
  "context": "Evaluates whether the event filtering utility relies on anymatch to test path-and-metadata tuples and respects the package's ability to forward extra tuple elements to predicate matchers. Emphasizes using built-in matcher handling and index-return behavior instead of reimplementing matching logic.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses anymatch",
      "description": "Matching logic delegates to anymatch (direct call or curried tester) instead of reimplementing matcher iteration, and event tuples are passed directly into anymatch for evaluation.",
      "max_score": 25
    },
    {
      "name": "Tuple forwarding",
      "description": "Event tuples are supplied to anymatch so predicate matchers receive forwarded args (e.g., event type and metadata) and filtering decisions rely on predicates using those extra arguments.",
      "max_score": 25
    },
    {
      "name": "Matcher variety",
      "description": "anymatch is configured to accept the full matcher array (strings/globs, RegExp objects, and predicate functions) from the spec without rewriting or splitting, including support for negated globs to exclude temporary files.",
      "max_score": 20
    },
    {
      "name": "Return index",
      "description": "When returnIndex mode is requested, the code uses anymatch's returnIndex capability to obtain the first matching matcher index (or -1) and threads that numeric result into the filter outputs.",
      "max_score": 15
    },
    {
      "name": "Curried tester",
      "description": "createEventTester (or equivalent) is built via the curried form of anymatch so the same tester can be reused across multiple events without reconstructing matcher logic each time.",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-anymatch

tile.json