| Constructor and Description |
|---|
AbstractLinter() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createDefaultOptions() |
protected abstract String |
getLinterName() |
protected abstract InputStream |
getScriptAsStream() |
AbstractLinter |
setOptions(String... options) |
void |
validate(String data)
Validates a js using jsHint and throws
LinterException if the js is invalid. |
protected abstract InputStream getScriptAsStream()
public void validate(String data) throws LinterException
LinterException if the js is invalid. If no exception is thrown, the
js is valid.data - js content to process.LinterExceptionprotected abstract String getLinterName()
public AbstractLinter setOptions(String... options)
options - the options to setprotected String createDefaultOptions()
Copyright © 2008-2013. All Rights Reserved.