simplebuild-jshint
Advanced tools
Comparing version
{ | ||
"name": "simplebuild-jshint", | ||
"version": "0.3.1", | ||
"version": "1.0.0", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=0.10" |
@@ -142,4 +142,6 @@ # Simplebuild-JSHint | ||
__0.3.1:__ Handles error objects with no evidence (first seen in JSHint 2.8.0). | ||
__1.0.0:__ Reports warning codes (and error codes) so they can be disabled more easily. | ||
__0.3.1:__ Fixed crash caused by error objects with no evidence (first seen in JSHint 2.8.0). | ||
__0.3.0:__ Added `jshint` as a peer dependency. It no longer needs to be installed separately. | ||
@@ -146,0 +148,0 @@ |
@@ -28,5 +28,5 @@ // Copyright (c) 2014 Titanium I.T. LLC. All rights reserved. For license, see "README" or "LICENSE" file. | ||
it("has descriptors", function() { | ||
expect(jshint.checkCode.descriptors).to.eql(messages.SOURCE_VALIDATOR_DESCRIPTORS); | ||
}); | ||
//it("has descriptors", function() { | ||
// expect(jshint.checkCode.descriptors).to.eql(messages.SOURCE_VALIDATOR_DESCRIPTORS); | ||
//}); | ||
@@ -81,5 +81,5 @@ it("calls success() callback on success", function() { | ||
describe("single file validator", function() { | ||
it("has descriptors", function() { | ||
expect(jshint.checkOneFile.descriptors).to.eql(messages.ONE_FILE_VALIDATOR_DESCRIPTORS); | ||
}); | ||
//it("has descriptors", function() { | ||
// expect(jshint.checkOneFile.descriptors).to.eql(messages.ONE_FILE_VALIDATOR_DESCRIPTORS); | ||
//}); | ||
@@ -142,5 +142,5 @@ it("calls success() callback on success", function() { | ||
describe("file list validator", function() { | ||
it("has descriptors", function() { | ||
expect(jshint.checkFiles.descriptors).to.eql(messages.FILE_LIST_VALIDATOR_DESCRIPTORS); | ||
}); | ||
//it("has descriptors", function() { | ||
// expect(jshint.checkFiles.descriptors).to.eql(messages.FILE_LIST_VALIDATOR_DESCRIPTORS); | ||
//}); | ||
@@ -147,0 +147,0 @@ it("calls success() callback on success", function() { |
@@ -1,2 +0,2 @@ | ||
/* Copyright (c) 2012-2014 James Shore - See README.txt for license */ | ||
/* Copyright (c) 2012-2015 James Shore - See README.txt for license */ | ||
"use strict"; | ||
@@ -76,7 +76,3 @@ | ||
lint.validateFile(filenames[0]); | ||
expect(output).to.eql([ | ||
"\n" + filenames[0] + " failed\n", | ||
"1: foo;\n", | ||
" Expected an assignment or function call and instead saw an expression.\n", | ||
]); | ||
expect(output[0]).to.equal("\n" + filenames[0] + " failed\n"); | ||
}); | ||
@@ -155,3 +151,3 @@ }); | ||
"1: foo;\n", | ||
" Expected an assignment or function call and instead saw an expression.\n", | ||
" Expected an assignment or function call and instead saw an expression. (W030)\n", | ||
]); | ||
@@ -167,5 +163,5 @@ }); | ||
"1: foo;\n", | ||
" Expected an assignment or function call and instead saw an expression.\n", | ||
" Expected an assignment or function call and instead saw an expression. (W030)\n", | ||
"2: bar()\n", | ||
" Missing semicolon.\n" | ||
" Missing semicolon. (W033)\n" | ||
]); | ||
@@ -188,5 +184,5 @@ }); | ||
"1: a?\n", | ||
" Unexpected early end of program.\n", | ||
" Unexpected early end of program. (E006)\n", | ||
"1\n", | ||
" Unrecoverable syntax error. (100% scanned).\n" | ||
" Unrecoverable syntax error. (100% scanned). (E041)\n" | ||
]); | ||
@@ -193,0 +189,0 @@ }); |
@@ -19,3 +19,3 @@ // Copyright (c) 2014 Titanium I.T. LLC. All rights reserved. For license, see "README" or "LICENSE" file. | ||
}; | ||
exports.checkFiles.descriptors = messages.FILE_LIST_VALIDATOR_DESCRIPTORS; | ||
//exports.checkFiles.descriptors = messages.FILE_LIST_VALIDATOR_DESCRIPTORS; | ||
@@ -32,3 +32,3 @@ | ||
}; | ||
exports.checkOneFile.descriptors = messages.ONE_FILE_VALIDATOR_DESCRIPTORS; | ||
//exports.checkOneFile.descriptors = messages.ONE_FILE_VALIDATOR_DESCRIPTORS; | ||
@@ -45,2 +45,2 @@ | ||
}; | ||
exports.checkCode.descriptors = messages.SOURCE_VALIDATOR_DESCRIPTORS; | ||
//exports.checkCode.descriptors = messages.SOURCE_VALIDATOR_DESCRIPTORS; |
@@ -1,2 +0,2 @@ | ||
/* Copyright (c) 2012-2014 James Shore - See README.txt for license */ | ||
/* Copyright (c) 2012-2015 James Shore - See README.txt for license */ | ||
"use strict"; | ||
@@ -38,5 +38,5 @@ | ||
console.log(error.line + evidence); | ||
console.log(" " + error.reason); | ||
console.log(" " + error.reason + " (" + error.code + ")"); | ||
}); | ||
} | ||
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
30690
0.24%0
-100%192
1.05%615
-0.65%