or run

tessl search
Log in

Version

Files

tile.json

rubric.jsonevals/scenario-1/

{
  "context": "This criteria evaluates how effectively the engineer uses micromatch's object key filtering functionality (matchKeys) to filter configuration objects based on glob patterns. The focus is on proper usage of the matchKeys API for simple patterns, multiple patterns, negation, and pattern combination.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses matchKeys function",
      "description": "Implementation uses micromatch.matchKeys() as the primary method for filtering object keys based on patterns",
      "max_score": 30
    },
    {
      "name": "Handles single patterns",
      "description": "Correctly passes a single pattern string to matchKeys (e.g., 'api*') to filter keys with simple wildcard matching",
      "max_score": 15
    },
    {
      "name": "Handles multiple patterns",
      "description": "Correctly passes an array of patterns to matchKeys (e.g., ['PROD_*', 'NODE_*']) to match multiple pattern rules",
      "max_score": 15
    },
    {
      "name": "Implements negation patterns",
      "description": "Correctly uses negation patterns with '!' prefix (e.g., '!password', '!*Token') to exclude specific keys from results",
      "max_score": 20
    },
    {
      "name": "Combines patterns correctly",
      "description": "Correctly combines inclusion and exclusion patterns in a single matchKeys call (e.g., ['*', '!password', '!*Token']) to create complex filtering rules",
      "max_score": 20
    }
  ]
}