index.js
function(file, lint, isError, isWarning, errorLocation) {
        var lintId = (isError) ? colors.bgRed(colors.white(lint.id)) : colors.bgYellow(colors.white(lint.id));
        var message = '';
        if (errorLocation) {
            message = file.path + ':' + (errorLocation.line + 1) + ':' + (errorLocation.column + 1) + ' ' + lintId + ' ' + lint.message;
        } else {
            message = file.path + ': ' + lintId + ' ' + lint.message;
        }

        if (isError) {
            log.error(message);
        } else {
            log.warning(message);
        }
    }
function(file, lint, isError, isWarning, errorLocation) {
        var lintId = (isError) ? colors.bgRed(colors.white(lint.id)) : colors.bgYellow(colors.white(lint.id));
        var message = '';
        if (errorLocation) {
            message = file.path + ':' + (errorLocation.line + 1) + ':' + (errorLocation.column + 1) + ' ' + lintId + ' ' + lint.message;
        } else {
            message = file.path + ': ' + lintId + ' ' + lint.message;
        }

        if (isError) {
            log.error(message);
        } else {
            log.warning(message);
        }
    }
function ( file , lint , isError , isWarning , errorLocation ) { var lintId = ( isError ) ? colors . bgRed ( colors . white ( lint . id ) ) : colors . bgYellow ( colors . white ( lint . id ) ) ; var message = '' ; if ( errorLocation ) { message = file . path + ':' + ( errorLocation . line + 1 ) + ':' + ( errorLocation . column + 1 ) + ' ' + lintId + ' ' + lint . message ; } else { message = file . path + ': ' + lintId + ' ' + lint . message ; } if ( isError ) { log . error ( message ) ; } else { log . warning ( message ) ; } }
Reporter function for linting errors and warnings.

@param file Current file object.
@param lint Current linting error.
@param isError True if this is an error.
@param isWarning True if this is a warning.
@param errorLocation Error location object.
Reporter function for linting errors and warnings .