public List < Error > lint ( String source , String options ) { if ( source == null ) { throw new NullPointerException ( "Source must not be null." ) ; } Context cx = Context . enter ( ) ; try { Scriptable scope = cx . initStandardObjects ( ) ; evaluateJSHint ( cx , scope ) ; return lint ( cx , scope , source , options ) ; } finally { Context . exit ( ) ; } }
Runs JSHint on given JavaScript source code .