Comparing version 2.1.3 to 2.1.4
@@ -1,3 +0,1 @@ | ||
/*jshint white:true, expr:true */ | ||
var a = {}, b; | ||
asdasd |
{ | ||
"name": "jshint", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"homepage": "http://jshint.com/", | ||
@@ -5,0 +5,0 @@ "description": "Static analysis tool for JavaScript", |
"use strict"; | ||
module.exports = { | ||
reporter: function (results, data) { | ||
reporter: function (results, data, opts) { | ||
var len = results.length, | ||
@@ -13,3 +13,10 @@ str = '', | ||
str += file + ': line ' + error.line + ', col ' + | ||
error.character + ', ' + error.reason + '\n'; | ||
error.character + ', ' + error.reason; | ||
// Add the error code if the --verbose option is set | ||
if (opts.verbose) { | ||
str += ' (' + error.code + ')'; | ||
} | ||
str += '\n'; | ||
}); | ||
@@ -16,0 +23,0 @@ |
@@ -72,3 +72,3 @@ "use strict"; | ||
W001: "'hasOwnProperty' is a really bad name.", | ||
W002: "Value of '{a}' may be overwritten in IE.", | ||
W002: "Value of '{a}' may be overwritten in IE 8 and earlier.", | ||
W003: "'{a}' was used before it was defined.", | ||
@@ -75,0 +75,0 @@ W004: "'{a}' is already defined.", |
@@ -431,2 +431,30 @@ // jshint -W001 | ||
exports.shelljs = { | ||
target : false, | ||
echo : false, | ||
exit : false, | ||
cd : false, | ||
pwd : false, | ||
ls : false, | ||
find : false, | ||
cp : false, | ||
rm : false, | ||
mv : false, | ||
mkdir : false, | ||
test : false, | ||
cat : false, | ||
sed : false, | ||
grep : false, | ||
which : false, | ||
dirs : false, | ||
pushd : false, | ||
popd : false, | ||
env : false, | ||
exec : false, | ||
chmod : false, | ||
config : false, | ||
error : false, | ||
tempdir : false | ||
}; | ||
exports.wsh = { | ||
@@ -433,0 +461,0 @@ ActiveXObject : true, |
@@ -168,3 +168,3 @@ /* | ||
check: function () { | ||
for (var check in _checks) { | ||
for (var check = 0; check < _checks.length; ++check) { | ||
_checks[check](); | ||
@@ -223,3 +223,3 @@ } | ||
this.source = source; | ||
this.lines = lines; | ||
this.setLines(lines); | ||
this.prereg = true; | ||
@@ -240,3 +240,3 @@ | ||
get lines() { | ||
getLines: function () { | ||
this._lines = state.lines; | ||
@@ -246,3 +246,3 @@ return this._lines; | ||
set lines(val) { | ||
setLines: function (val) { | ||
this._lines = val; | ||
@@ -1402,3 +1402,3 @@ state.lines = this._lines; | ||
if (this.peek() === "") { // EOL | ||
if (!/^\s*$/.test(this.lines[this.line - 1]) && state.option.trailing) { | ||
if (!/^\s*$/.test(this.getLines()[this.line - 1]) && state.option.trailing) { | ||
this.trigger("warning", { code: "W102", line: this.line, character: start }); | ||
@@ -1446,7 +1446,7 @@ } | ||
if (this.line >= this.lines.length) { | ||
if (this.line >= this.getLines().length) { | ||
return false; | ||
} | ||
this.input = this.lines[this.line]; | ||
this.input = this.getLines()[this.line]; | ||
this.line += 1; | ||
@@ -1453,0 +1453,0 @@ this.char = 1; |
Sorry, the diff of this file is too big to display
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
2898374
67633