Permalink
Browse files

Merge pull request #31 from tomgasson/master

Windows work-around
  • Loading branch information...
2 parents 845bb15 + 31f110f commit 832d8d5d288a9ad35ef051bd95215cc8fd4dc6fd Jamie Hoover ⚔ committed Aug 8, 2012
Showing with 12 additions and 3 deletions.
  1. +1 −1 JSHint.sublime-build
  2. +11 −2 reporter.js
@@ -3,7 +3,7 @@
"cmd": ["jshint", "$file", "--reporter", "$packages/JSHint/reporter.js"],
- "file_regex": "file:\\s(.+)\\]",
+ "file_regex": "file:(.+)\\]",
"line_regex": "(\\d+),(\\d+)",
"osx": {
View
@@ -21,7 +21,12 @@ module.exports = {
return stayNumberWang;
}
-
+ var buffer = '';
+ console.log = function(){
+ var args = Array.prototype.slice.call(arguments);
+ buffer += args.join('');
+ buffer += '\n';
+ }
console.log('[JSHint file:', file + ']');
results.forEach(function (result) {
@@ -60,7 +65,9 @@ module.exports = {
if (globals) {
globals.forEach(function (global) {
- console.log(numberWang(global.line.toString().length + 1), global.line + ',1: \'' + global.name + '\' is an implied global variable.');
+ for (var line in global.line){
+ console.log(numberWang(global.line[line].toString().length + 1), global.line[line] + ',1: \'' + global.name + '\' is an implied global variable.');
+ }
});
}
@@ -70,5 +77,7 @@ module.exports = {
});
}
}
+ process.stdout.write(buffer);
+ setTimeout('',3000);
}
};

0 comments on commit 832d8d5

Please sign in to comment.