Code coverage report for lib/tasks/csslint.js

Statements: 100% (5 / 5)      Branches: 50% (2 / 4)      Functions: 100% (1 / 1)      Lines: 100% (5 / 5)     

All files » lib/tasks/ » csslint.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15          1   1 4   4   4    
/*
 * Copyright (c) 2011-2012, Yahoo! Inc.  All rights reserved.
 * Copyrights licensed under the New BSD License.
 * See the accompanying LICENSE file for terms.
 */
var linter = require('csslint').CSSLint;
 
exports.task = function (resource, options, done) {
    'use strict';
 
    var result = linter.verify(resource.content, options || null);
 
    done(result.messages[0] && result.messages[0].message);
};