or run

npx @tessl/cli init
Log in

Version

Files

tile.json

rubric.jsonevals/scenario-8/

{
  "context": "This criteria evaluates how well the engineer uses picomatch's pattern compilation capabilities, specifically the makeRe() function, to convert glob patterns into regular expressions for path validation. The focus is on proper usage of picomatch's API for creating reusable matchers.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses makeRe()",
      "description": "Correctly uses picomatch.makeRe() to compile glob patterns into regular expressions",
      "max_score": 35
    },
    {
      "name": "Regex testing",
      "description": "Properly tests input paths against the compiled regex objects returned by makeRe()",
      "max_score": 20
    },
    {
      "name": "Options handling",
      "description": "Correctly passes options (like nocase) to makeRe() for case-insensitive matching",
      "max_score": 20
    },
    {
      "name": "Multiple patterns",
      "description": "Handles array of patterns by creating multiple regex objects or combining patterns appropriately",
      "max_score": 15
    },
    {
      "name": "Validator structure",
      "description": "Returns an object with a test method that encapsulates the compiled regex for reusable matching",
      "max_score": 10
    }
  ]
}