git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ajax: script: Threat sameDomain file:// requests as crossDomain
[jquery.git]
/
build
/
jslint-check.js
diff --git
a/build/jslint-check.js
b/build/jslint-check.js
index
976975a
..
72d6701
100644
(file)
--- a/
build/jslint-check.js
+++ b/
build/jslint-check.js
@@
-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 });
JSLINT(src, { evil: true, forin: true, maxerr: 100 });
@@
-29,8
+29,8
@@
for ( var i = 0; i < e.length; i++ ) {
}
if ( found > 0 ) {
}
if ( found > 0 ) {
- print( "\n" + found + " Error(s) found." );
+ print( "\n" + found + " Error(s) found.\n" );
} else {
} else {
- print( "JSLint check passed." );
+ print( "JSLint check passed.\n" );
}
}