License detector for UglifyJS that identifies and preserves license comments during minification
Overall
score
98%
{
"context": "This criteria evaluates how well the engineer uses uglify-save-license package concepts to implement comment type detection. The focus is on understanding and utilizing the comment type conventions ('comment1' for line comments, 'comment2' for block comments) that are used by UglifyJS and similar minification tools.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Comment Type Field Usage",
"description": "Implementation correctly accesses and uses the comment.type field to determine comment type",
"max_score": 30
},
{
"name": "Line Comment Detection",
"description": "Implementation correctly identifies 'comment1' type as line comments and returns 'line'",
"max_score": 25
},
{
"name": "Block Comment Detection",
"description": "Implementation correctly identifies 'comment2' type as block comments and returns 'block'",
"max_score": 25
},
{
"name": "Type Convention Understanding",
"description": "Implementation demonstrates understanding of UglifyJS comment type conventions by properly mapping 'comment1'/'comment2' to their respective comment types, regardless of comment content",
"max_score": 20
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-uglify-save-licensedocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10