From b6a2dfbeb9ff77aa7776fd3439ad431b1100c51b Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Thu, 29 Dec 2011 11:36:41 -0500 Subject: [PATCH] Improves handling of EOL whitespace error reporting --- build/jshint-check.js | 6 +++--- 1 file 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