xonecas.io
1510
Cn

cli-node-jshint / commit 4774d8e

made some changes to make this compatible with https://github.com/walm/jshint.vim

sean2011-08-17 4774d8ed91f246ce751008f61b59d3c6438587b4 parent 7f26dc9

1 file changed

cli-jshint+2−4
@@ -12,9 +12,9 @@ var jshint = require('./jshint/jshint.js').JSHINT,
1212 keyValuePair;
1313
1414 args.forEach(function (arg) {
15- if (arg.indexOf('/') !== -1) {
15+ if (arg.indexOf(':') === -1) {
1616 /* path to js file */
17- paths.push(arg);
17+ paths.push(path.resolve(arg));
1818 } else {
1919 /* jshint option */
2020 keyValuePair = arg.split(':');
@@ -25,8 +25,6 @@ args.forEach(function (arg) {
2525 function reportErrors (file, errors) {
2626 var str = "";
2727
28- file = path.basename(file);
29-
3028 errors.forEach(function (err) {
3129 /* Same error reporting syntax as @brentlintner's
3230 so that it works with 3rd party plugins (vim/emacs?) */