Class | Juicer::JsLint |
In: |
lib/juicer/jslint.rb
|
Parent: | Object |
A Ruby API to Douglas Crockfords genious JsLint program www.jslint.com/
JsLint parses JavaScript code and identifies (potential) problems. Effectively, JsLint defines a subset of JavaScript which is safe to use, and among other things make code minification a substantially less dangerous task.
Checks if a files has problems. Also includes experimental support for CSS files. CSS files should begin with the line @charset "UTF-8";
Returns a Juicer::JsLint::Report object