Permalink
Browse files

There are some lint errors that needed to be cleaned up.

  • Loading branch information...
1 parent 72d70ec commit 3a6f531f1f13f08562cc62cd4f25b726b749dd31 @brentlintner brentlintner committed Aug 30, 2012
Showing with 8 additions and 9 deletions.
  1. +1 −1 lib/cli.js
  2. +2 −2 lib/hint.js
  3. +1 −1 lib/reporters/default.js
  4. +1 −1 lib/reporters/non_error.js
  5. +1 −2 tasks/test.js
  6. +2 −2 test/unit/cli.js
View
@@ -49,7 +49,7 @@ function _searchFile(name, dir) {
return dir === parent ? null : _searchFile(name, parent);
}
-function _findConfig(target) {
+function _findConfig() {
var name = ".jshintrc",
projectConfig = _searchFile(name),
homeConfig = path.normalize(path.join(process.env.HOME, name));
View
@@ -30,8 +30,8 @@ function _lint(file, results, config, data) {
// remove custom node-jshint option
if (config.globals) {
- globals = config.globals;
- delete config.globals;
+ globals = config.globals;
+ delete config.globals;
}
if (!jshint.JSHINT(buffer, config, globals)) {
@@ -1,5 +1,5 @@
module.exports = {
- reporter: function (results, data) {
+ reporter: function (results) {
var len = results.length,
str = '',
file, error;
@@ -1,7 +1,7 @@
/*jshint node: true */
module.exports =
{
- reporter: function (results, data, done) {
+ reporter: function (results, data) {
var len = results.length,
str = '',
file, error, globals, unuseds;
View
@@ -21,6 +21,5 @@ module.exports = function () {
}
});
- jasmine.executeSpecsInFolder(__dirname + "/../test/unit/", function (runner, log) {
- }, verbose, colored);
+ jasmine.executeSpecsInFolder(__dirname + "/../test/unit/", null, verbose, colored);
};
View
@@ -68,11 +68,11 @@ describe("cli", function () {
path = require('path'),
home = path.join(process.env.HOME, '.jshintrc');
- spyOn(path, "existsSync").andCallFake(function (path, encoding) {
+ spyOn(path, "existsSync").andCallFake(function (path) {
return path.match(home) ? true : false;
});
- spyOn(fs, "readFileSync").andCallFake(function (path, encoding) {
+ spyOn(fs, "readFileSync").andCallFake(function (path) {
if (path === home) {
return JSON.stringify(config);
} else {

0 comments on commit 3a6f531

Please sign in to comment.