]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Cheat jslint
authorRick Waldron <waldron.rick@gmail.com>
Tue, 6 Sep 2011 20:38:18 +0000 (16:38 -0400)
committerRick Waldron <waldron.rick@gmail.com>
Tue, 6 Sep 2011 20:38:18 +0000 (16:38 -0400)
build/jslint-check.js

index 4d11dfca7b4eec1936470026ea5339a20372ca58..335efc78a603acb0a6cae4ce78e3e7eb875a70ca 100644 (file)
@@ -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 {