index.js
function(file, errorCount, warningCount) {
        if (errorCount > 0 || warningCount > 0) {
            var message = '';
            if (errorCount > 0) {
                message += colors.red(errorCount + ' lint ' + (errorCount === 1 ? 'error' : 'errors'));
            }

            if (warningCount > 0) {
                if (errorCount > 0) {
                    message += ' and ';
                }
                message += colors.yellow(warningCount + ' lint ' + (warningCount === 1 ? 'warning' : 'warnings'));
            }
            message += ' found in file ' + file.path;
            log.notice(message);
        } else {
            log.info(colors.green(file.path + ' is lint free!'));
        }
    }
function(file, errorCount, warningCount) {
        if (errorCount > 0 || warningCount > 0) {
            var message = '';
            if (errorCount > 0) {
                message += colors.red(errorCount + ' lint ' + (errorCount === 1 ? 'error' : 'errors'));
            }

            if (warningCount > 0) {
                if (errorCount > 0) {
                    message += ' and ';
                }
                message += colors.yellow(warningCount + ' lint ' + (warningCount === 1 ? 'warning' : 'warnings'));
            }
            message += ' found in file ' + file.path;
            log.notice(message);
        } else {
            log.info(colors.green(file.path + ' is lint free!'));
        }
    }
function ( file , errorCount , warningCount ) { if ( errorCount > 0 || warningCount > 0 ) { var message = '' ; if ( errorCount > 0 ) { message += colors . red ( errorCount + ' lint ' + ( errorCount === 1 ? 'error' : 'errors' ) ) ; } if ( warningCount > 0 ) { if ( errorCount > 0 ) { message += ' and ' ; } message += colors . yellow ( warningCount + ' lint ' + ( warningCount === 1 ? 'warning' : 'warnings' ) ) ; } message += ' found in file ' + file . path ; log . notice ( message ) ; } else { log . info ( colors . green ( file . path + ' is lint free!' ) ) ; } }
Reporter function for linting summary.

@param file File which was linted.
@param errorCount Total count of errors in file.
@param warningCount Total count of warnings in file.
Reporter function for linting summary .