Skip to content

Commit b6a2dfb

Browse files
rwaldrondmethvin
authored andcommitted
Improves handling of EOL whitespace error reporting
1 parent dd90046 commit b6a2dfb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build/jshint-check.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ if ( jshint( src, config ) ) {
2525
jshint.errors.forEach(function( e ) {
2626
if ( !e ) { return; }
2727

28-
var str = e.evidence ? e.evidence : "";
28+
var str = e.evidence ? e.evidence : "",
29+
character = e.character === true ? "EOL" : "C" + e.character;
2930

3031
if ( str ) {
3132
str = str.replace( /\t/g, " " ).trim();
32-
33-
console.log( " [L" + e.line + ":C" + e.character + "] " + e.reason + "\n " + str + "\n");
33+
console.log( " [L" + e.line + ":" + character + "] " + e.reason + "\n " + str + "\n");
3434
}
3535
});
3636
}

0 commit comments

Comments
 (0)