fnug.util
Class JSLintWrapper
java.lang.Object
fnug.util.JSLintWrapper
public class JSLintWrapper
- extends Object
Wrapper around JSLint4Java since that package doesn't manage the rhino Context thread local appropriately.
Constructor Summary |
JSLintWrapper(String... args)
Construct passing the configuration arguments. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSLintWrapper
public JSLintWrapper(String... args)
- Construct passing the configuration arguments.
- Parameters:
args
- configs
lint
public String lint(String systemId,
String javaScript)
- Check for problems in JavaScript source.
- Parameters:
systemId
- a filenamejavaScript
- a String of JavaScript source code.
- Returns:
- a
JSLintResult
.
Copyright © 2012. All Rights Reserved.