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

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

All files » stylus-lint/src/checks/ » checkForSemicolon.js
1 2 3 4 5 6 7 8 9 10 11 12 13      1 3   2 1     1    
'use strict';
 
// check for semicolons
module.exports = function checkForSemicolons( line ) {
    if ( typeof line !== 'string' ) { return; }
 
    if ( line.indexOf(';') !== -1 ) {
        return true;
    }
    else {
        return false;
    }
}