Code coverage report for stylus-lint/src/checks/checkForComment.js

Statements: 100% (7 / 7)      Branches: 100% (4 / 4)      Functions: 100% (1 / 1)      Lines: 100% (6 / 6)      Ignored: none     

All files » stylus-lint/src/checks/ » checkForComment.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16      1   1 36437     36436 4140     32296    
'use strict';
 
// check for line comment on the line
var hasComment = /(\/\/)/;
 
module.exports = function checkForComment( line ) {
    if ( typeof line !== 'string' ) { return; }
 
    // ex }, but only if we've already establish that we're not in a hash
    if ( hasComment.test(line) ) {
        return true;
    }
    else {
        return false;
    }
}