From: Rick Waldron Date: Tue, 6 Sep 2011 20:38:18 +0000 (-0400) Subject: Cheat jslint X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=8d76b7f54984c0eed048f4514992d28f41781b8a;p=popcorn-js.git Cheat jslint --- diff --git a/build/jslint-check.js b/build/jslint-check.js index 4d11dfc..335efc7 100644 --- a/build/jslint-check.js +++ b/build/jslint-check.js @@ -9,7 +9,8 @@ var ok = { "Use '!==' to compare with 'null'.": true, "Expected an assignment or function call and instead saw an expression.": true, "Expected a 'break' statement before 'case'.": true, - "'e' is already defined.": true + "'e' is already defined.": true, + "Don't make functions within a loop.": true }; function check(src) @@ -26,7 +27,7 @@ function check(src) print( " Problem at line " + w.line + " character " + w.character + ": " + w.reason ); } } - + if ( found > 0 ) { print( "\n" + found + " Error(s) found." ); } else {