CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-snazzy

Format JavaScript Standard Style as Stylish (i.e. snazzy) output

94

1.18x
Overview
Eval results
Files

rubric.jsonevals/scenario-6/

{
  "context": "This criteria evaluates how well the engineer uses the readable-stream package to implement proper exit code coordination patterns for CI/CD integration, including stream-based processing, asynchronous exit code management, and proper process lifecycle integration.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Transform stream extension",
      "description": "Uses stream.Transform (or Transform from readable-stream) as the base class for CodeAnalyzer, properly extending it to create a custom transform stream",
      "max_score": 20
    },
    {
      "name": "Buffer accumulation pattern",
      "description": "Implements _transform() method to accumulate input chunks into a buffer before processing, following the collect-then-process pattern",
      "max_score": 15
    },
    {
      "name": "Flush-time processing",
      "description": "Implements _flush() method to process the complete buffered input when the stream ends, performing JSON parsing and analysis at flush time",
      "max_score": 15
    },
    {
      "name": "Exit code property",
      "description": "Exposes an exitCode property on the stream instance that can be accessed programmatically after stream processing completes",
      "max_score": 15
    },
    {
      "name": "Process exit handler",
      "description": "Uses process.on('exit') event handler to set the process exit code after all asynchronous operations complete",
      "max_score": 20
    },
    {
      "name": "Conditional exit override",
      "description": "Only overrides the process exit code when it would otherwise be 0, preserving any existing non-zero exit codes",
      "max_score": 10
    },
    {
      "name": "Error-based exit logic",
      "description": "Correctly analyzes the input data to determine if errors are present (severity='error') and sets exitCode to 1 when errors are found, 0 otherwise",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-snazzy

tile.json