coffee-jshint
Advanced tools
Comparing version 0.0.8 to 0.0.9
// Generated by CoffeeScript 1.6.3 | ||
var CoffeeScript, buildTrueObj, defaultOptions, errorsToSkip, formatErrors, fs, hint, hintFiles, jshint, _, | ||
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; | ||
var CoffeeScript, buildTrueObj, defaultOptions, errorsToSkip, formatErrors, fs, hint, hintFiles, jshint, _; | ||
@@ -15,3 +14,3 @@ fs = require('fs'); | ||
errorsToSkip = ["Did you mean to return a conditional instead of an assignment?", "Confusing use of '!'.", "Wrap the /regexp/ literal in parens to disambiguate the slash operator."]; | ||
errorsToSkip = ["Did you mean to return a conditional instead of an assignment?", "Confusing use of '!'.", "Wrap the /regexp/ literal in parens to disambiguate the slash operator.", "Creating global 'for' variable. Should be 'for (var"]; | ||
@@ -62,4 +61,5 @@ hintFiles = function(paths, config, log) { | ||
}).filter(function(error) { | ||
var _ref1; | ||
return _ref1 = error.reason, __indexOf.call(errorsToSkip, _ref1) < 0; | ||
return !_.any(errorsToSkip, function(to_skip) { | ||
return error.reason.indexOf(to_skip >= 0); | ||
}); | ||
}).value(); | ||
@@ -66,0 +66,0 @@ } |
{ | ||
"name": "coffee-jshint", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Checks CoffeeScript source for errors using JSHint", | ||
@@ -5,0 +5,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14822