Skip to content
Browse files

Don't return an error on empty input.

Lots of people complaining about that so I decided to remove it.
Closes GH-767.
  • Loading branch information...
1 parent 5623f08 commit ce7da77f81412c13aea19e857bc6fdf9069804d5 @valueof valueof committed Mar 1, 2013
Showing with 0 additions and 12 deletions.
  1. +0 −10 src/stable/jshint.js
  2. +0 −2 tests/stable/unit/core.js
View
10 src/stable/jshint.js
@@ -3302,16 +3302,6 @@ var JSHINT = (function () {
return false;
}
- if (isString(s) && /^\s*$/g.test(s)) {
- errorAt("E005", 0);
- return false;
- }
-
- if (s.length === 0) {
- errorAt("E005", 0);
- return false;
- }
-
var api = {
get isJSON() {
return state.jsonMode;
View
2 tests/stable/unit/core.js
@@ -457,11 +457,9 @@ exports.testInvalidSource = function (test) {
.test({});
TestRun(test)
- .addError(0, "Input is empty.")
.test("");
TestRun(test)
- .addError(0, "Input is empty.")
.test([]);
test.done();

0 comments on commit ce7da77

Please sign in to comment.
Something went wrong with that request. Please try again.