or run

tessl search
Log in

Version

Files

tile.json

rubric.jsonevals/scenario-9/

{
  "context": "This criteria evaluates how well the engineer uses the micromatch library's scan method to analyze glob pattern structure. The focus is on correctly utilizing micromatch.scan() to extract pattern metadata such as globstar presence, negation status, and path segments.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses scan method",
      "description": "The implementation correctly imports and uses micromatch.scan() to analyze glob patterns rather than attempting to parse patterns manually or using other methods",
      "max_score": 30
    },
    {
      "name": "Extracts globstar property",
      "description": "The implementation correctly accesses the globstar property from the scan result to determine if the pattern contains ** segments",
      "max_score": 20
    },
    {
      "name": "Extracts negated property",
      "description": "The implementation correctly accesses the negated property from the scan result to determine if the pattern starts with !",
      "max_score": 20
    },
    {
      "name": "Extracts pattern segments",
      "description": "The implementation correctly accesses and returns the pattern segments/parts from the scan result, such as using the parts, tokens, or slashes properties appropriately",
      "max_score": 20
    },
    {
      "name": "Batch processing implementation",
      "description": "The batchAnalyze function correctly processes multiple patterns by calling analyzePattern (or scan) for each pattern and returning an array of results",
      "max_score": 10
    }
  ]
}