Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 787f0ca94e
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (33 sloc) 0.863 kb
<job>
<script src="fulljslint.js" language="javascript"></script>
<script language="javascript">
/*global JSLINT load readline WScript */
var readSTDIN = function() {
var line,
input = [],
emptyCount = 0,
i;
var stdIn = WScript.stdIn,
stdOut = WScript.stdOut;
while (!stdIn.atEndofStream) {
line = stdIn.readLine();
input.push(line);
}
return input.join("\n");
};
var body = readSTDIN() || arguments[0],
ok = JSLINT(body),
i,
error,
errorCount;
if (!ok) {
errorCount = JSLINT.errors.length;
for (i = 0; i < errorCount; i += 1) {
error = JSLINT.errors[i];
if (error && error.reason && error.reason.match(/^Stopping/) === null) {
WScript.echo([error.line, error.character, error.reason].join(":"));
}
}
}
</script>
</job>
Jump to Line
Something went wrong with that request. Please try again.