public abstract class AbstractJSHinter extends Object implements JSHinter
| Modifier and Type | Field and Description |
|---|---|
protected Map<File,String> |
effectiveJSHintConfig |
protected org.apache.maven.plugin.logging.Log |
log |
| Constructor and Description |
|---|
AbstractJSHinter(org.apache.maven.plugin.logging.Log log) |
| Modifier and Type | Method and Description |
|---|---|
List<Error> |
executeJSHint(File baseDirectory,
String path,
String defaultJSHintConfigContent,
boolean ignoreJSConfigFileOnPaths)
Executes JSHint validation on a single script file
|
protected abstract List<Error> |
executeJSHintImpl(File baseDirectory,
String path,
String defaultJSHintConfigContent) |
protected String |
lookupCustomJSHintConfig(File baseDirectory,
String path) |
protected String |
readSource(File contentFile) |
protected List<String> |
readSourceLines(File baseDirectory,
String path) |
protected void |
reportErrors(List<Error> errors) |
public AbstractJSHinter(org.apache.maven.plugin.logging.Log log)
public List<Error> executeJSHint(File baseDirectory, String path, String defaultJSHintConfigContent, boolean ignoreJSConfigFileOnPaths)
executeJSHint in interface JSHinterbaseDirectory - the base directory that contains the script filepath - the path relative to the base directory that denotes the script filedefaultJSHintConfigContent - the default JSHint configuration in JSON formatignoreJSConfigFileOnPaths - true if .jshintrc files found on the path should be ignored, false otherwiseprotected abstract List<Error> executeJSHintImpl(File baseDirectory, String path, String defaultJSHintConfigContent)
Copyright © 2016. All rights reserved.