Adds jQuery collection to objects that will be used as global events context if provi...
[jquery.git] / build / jslint-check.js
index e76abc0..72d6701 100644 (file)
@@ -1,6 +1,6 @@
-load("build/jslint.js");
-
-var src = readFile("dist/jquery.js");
+var JSLINT = require("./lib/jslint").JSLINT,
+       print = require("sys").print,
+       src = require("fs").readFileSync("dist/jquery.js", "utf8");
 
 JSLINT(src, { evil: true, forin: true, maxerr: 100 });
 
@@ -12,8 +12,8 @@ var ok = {
        "Use '===' to compare with 'null'.": true,
        "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
-
+       "Expected a 'break' statement before 'case'.": true,
+       "'e' is already defined.": true
 };
 
 var e = JSLINT.errors, found = 0, w;
@@ -29,8 +29,8 @@ for ( var i = 0; i < e.length; i++ ) {
 }
 
 if ( found > 0 ) {
-       print( "\n" + found + " Error(s) found." );
+       print( "\n" + found + " Error(s) found.\n" );
 
 } else {
-       print( "JSLint check passed." );
+       print( "JSLint check passed.\n" );
 }