diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2011-12-29 11:36:41 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-01-11 21:49:55 -0500 |
commit | b6a2dfbeb9ff77aa7776fd3439ad431b1100c51b (patch) | |
tree | a99883c119987008aed87bae1b758c27e8465c74 | |
parent | dd900460ac6f77be71ceb878bc2cd1465397dc60 (diff) | |
download | jquery-b6a2dfbeb9ff77aa7776fd3439ad431b1100c51b.tar.gz jquery-b6a2dfbeb9ff77aa7776fd3439ad431b1100c51b.zip |
Improves handling of EOL whitespace error reporting
-rw-r--r-- | build/jshint-check.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build/jshint-check.js b/build/jshint-check.js index 4a21309e9..c19fd09b3 100644 --- a/build/jshint-check.js +++ b/build/jshint-check.js @@ -25,12 +25,12 @@ if ( jshint( src, config ) ) { jshint.errors.forEach(function( e ) { if ( !e ) { return; } - var str = e.evidence ? e.evidence : ""; + var str = e.evidence ? e.evidence : "", + character = e.character === true ? "EOL" : "C" + e.character; if ( str ) { str = str.replace( /\t/g, " " ).trim(); - - console.log( " [L" + e.line + ":C" + e.character + "] " + e.reason + "\n " + str + "\n"); + console.log( " [L" + e.line + ":" + character + "] " + e.reason + "\n " + str + "\n"); } }); }
\ No newline at end of file |