or run

tessl search
Log in

Version

Files

tile.json

rubric.jsonevals/scenario-4/

{
  "context": "This criteria evaluates the engineer's ability to use micromatch's ignore option for pattern filtering. The focus is on correctly utilizing the ignore parameter in micromatch functions to exclude files from results based on glob patterns.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses micromatch function",
      "description": "Implementation uses the micromatch() main function or similar micromatch API (e.g., micromatch.match()) to filter the files array based on patterns",
      "max_score": 25
    },
    {
      "name": "Uses ignore option",
      "description": "Implementation correctly passes the ignore patterns using the 'ignore' option parameter in the micromatch options object (e.g., micromatch(files, patterns, { ignore: ignorePatterns }))",
      "max_score": 35
    },
    {
      "name": "Handles single ignore pattern",
      "description": "Implementation correctly handles a single string ignore pattern, allowing the ignore option to accept a string value",
      "max_score": 15
    },
    {
      "name": "Handles multiple ignore patterns",
      "description": "Implementation correctly handles an array of ignore patterns, allowing the ignore option to accept an array of strings",
      "max_score": 15
    },
    {
      "name": "Returns correct results",
      "description": "The function correctly returns the filtered array with files that match the inclusion patterns but are excluded if they match any ignore pattern",
      "max_score": 10
    }
  ]
}