Permalink
Browse files

fixed some jslint errors

  • Loading branch information...
davybrion committed Aug 14, 2011
1 parent 211d115 commit 90e41bb87ac151fcacc652bbbaee9390b1d796db
Showing with 7 additions and 7 deletions.
  1. +7 −7 lib/runner.js
View
@@ -1,21 +1,21 @@
-var exec = require('child_process').exec
+var exec = require('child_process').exec,
fs = require('fs'),
jslint = require('./jslint.js'),
fileCount = 0,
results = [];
function getJsFilesRecursively(startPath, callback) {
exec('find ' + startPath, function(err, stdout) {
- var jsFiles = []
+ var jsFiles = [];
stdout.split('\n').forEach(function(f) {
if (!/node_modules\//.test(f) && /.js$/.test(f)) {
jsFiles.push(f);
- };
+ }
});
callback(null, jsFiles);
});
-};
+}
function lint(filepath, options, postcallback) {
fs.readFile(filepath, function(err, data) {
@@ -27,11 +27,11 @@ function lint(filepath, options, postcallback) {
path: filepath,
jslintOutput: jslint.data()
});
- };
+ }
postcallback();
});
-};
+}
module.exports = {
check: function(path, options, callback) {
@@ -41,7 +41,7 @@ module.exports = {
var postLint = function() {
if (--fileCount === 0) {
callback(null, results);
- };
+ }
};
getJsFilesRecursively(path, function(err, jsFiles) {

0 comments on commit 90e41bb

Please sign in to comment.