lib/reporter.js
function reporter(error, file) {

    // _JS Hint_ can sometimes call the reporter function with no error. This is
    // simply ignored.

    if (!error) {
        return;
    }

    if (!(error.code in errors)) {
        errors[error.code] = { reason: error.raw, count: 0 };
    }

    errors[error.code].count++;
    totalErrors++;

    console.log(getChalk(error.code)('%s: line %d, col %d, %s'),
        file, error.line, error.character, error.reason);

    if (error.evidence !== undefined) {
        var evidence = error.evidence.trim();
        console.log(chalk.grey('    %s'), evidence);
    }
}
function reporter(error, file) {

    // _JS Hint_ can sometimes call the reporter function with no error. This is
    // simply ignored.

    if (!error) {
        return;
    }

    if (!(error.code in errors)) {
        errors[error.code] = { reason: error.raw, count: 0 };
    }

    errors[error.code].count++;
    totalErrors++;

    console.log(getChalk(error.code)('%s: line %d, col %d, %s'),
        file, error.line, error.character, error.reason);

    if (error.evidence !== undefined) {
        var evidence = error.evidence.trim();
        console.log(chalk.grey('    %s'), evidence);
    }
}
function reporter ( error , file ) { // _JS Hint_ can sometimes call the reporter function with no error. This is // simply ignored. if ( ! error ) { return ; } if ( ! ( error . code in errors ) ) { errors [ error . code ] = { reason : error . raw , count : 0 } ; } errors [ error . code ] . count ++ ; totalErrors ++ ; console . log ( getChalk ( error . code ) ( '%s: line %d, col %d, %s' ) , file , error . line , error . character , error . reason ) ; if ( error . evidence !== undefined ) { var evidence = error . evidence . trim ( ) ; console . log ( chalk . grey ( '    %s' ) , evidence ) ; } }
The _JS Hint_ reporter displays a formatted line with the level determined by _JS Hint_, followed by the evidence for that error.
The _JS Hint_ reporter displays a formatted line with the level determined by _JS Hint_ followed by the evidence for that error .