or run

npx @tessl/cli init
Log in

Version

Files

tile.json

rubric.jsonevals/scenario-5/

{
  "context": "This criteria evaluates how well the engineer uses picomatch's custom format function capability to normalize path prefixes before pattern matching. The focus is on proper usage of the format option in picomatch to preprocess input strings.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses picomatch function",
      "description": "The solution uses the picomatch() function (or picomatch.isMatch()) to create a matcher or perform matching operations",
      "max_score": 20
    },
    {
      "name": "Implements format option",
      "description": "The solution passes a format option/callback to picomatch that preprocesses the input paths before matching",
      "max_score": 35
    },
    {
      "name": "Strips ./ prefix",
      "description": "The format function correctly removes the './' prefix from paths (e.g., './index.js' becomes 'index.js')",
      "max_score": 15
    },
    {
      "name": "Strips ~/ prefix",
      "description": "The format function correctly removes the '~/' prefix from paths (e.g., '~/src/file.js' becomes 'src/file.js')",
      "max_score": 15
    },
    {
      "name": "Preserves unprefixed paths",
      "description": "The format function leaves paths without './' or '~/' prefixes unchanged, allowing them to be matched as-is",
      "max_score": 15
    }
  ]
}