or run

tessl search
Log in

Version

Files

tile.json

rubric.jsonevals/scenario-2/

{
  "context": "This criteria evaluates how well the engineer uses the micromatch package to implement file path filtering based on glob patterns, specifically focusing on single wildcard (*) matching capabilities.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses micromatch function",
      "description": "Uses the main micromatch function (micromatch() or micromatch.match()) to filter the array of file paths against patterns",
      "max_score": 40
    },
    {
      "name": "Pattern handling",
      "description": "Correctly passes patterns parameter to micromatch, handling both string and array pattern inputs appropriately",
      "max_score": 20
    },
    {
      "name": "Direct array filtering",
      "description": "Leverages micromatch's built-in array filtering capability rather than manually iterating and testing each path with isMatch",
      "max_score": 20
    },
    {
      "name": "Returns filtered array",
      "description": "Returns the filtered array directly from micromatch without unnecessary post-processing or transformations",
      "max_score": 20
    }
  ]
}