Skip to content

Instantly share code, notes, and snippets.

@oberhamsi
Last active December 16, 2015 07:28
Show Gist options
  • Save oberhamsi/5398447 to your computer and use it in GitHub Desktop.
Save oberhamsi/5398447 to your computer and use it in GitHub Desktop.
quick jslint with ringo
var fs = require('fs');
JSLINT(fs.read(require('system').args[1]), {
passfail: false,
undef: true,
vars: true,
bitwise: true,
sloppy: true,
white: true,
devel: true,
plusplus: true,
eqeq: true,
maxerr: Infinity,
nomen: true,
node: true,
forin: true
});
JSLINT.errors.forEach(function(error) {
if (!error) return;
console.log(error.line, ": ", error.reason, error.evidence)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment