Skip to content
Permalink
Browse files

Improves handling of EOL whitespace error reporting

  • Loading branch information...
rwaldron authored and dmethvin committed Dec 29, 2011
1 parent dd90046 commit b6a2dfbeb9ff77aa7776fd3439ad431b1100c51b
Showing with 3 additions and 3 deletions.
  1. +3 −3 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");
}
});
}

0 comments on commit b6a2dfb

Please sign in to comment.
You can’t perform that action at this time.