Format JavaScript Standard Style as Stylish (i.e. snazzy) output
94
{
"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-snazzydocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10