aboutsummaryrefslogtreecommitdiffstats
path: root/build/jshint-check.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/jshint-check.js')
-rw-r--r--build/jshint-check.js6
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