|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectro.isdc.wro.extensions.processor.css.CssLintProcessor
@SupportedResourceType(value=CSS) public class CssLintProcessor
Processor which analyze the css code and warns you found problems. The processing result won't change no matter if
the processed script contains errors or not. The underlying implementation uses CSSLint script utility ://github.com/stubbornella/csslint.
| Field Summary | |
|---|---|
static String |
ALIAS
|
| Constructor Summary | |
|---|---|
CssLintProcessor()
|
|
| Method Summary | |
|---|---|
protected String |
createDefaultOptions()
|
protected CssLint |
newCssLint()
|
protected void |
onCssLintException(CssLintException e,
Resource resource)
Called when CssLintException is thrown. |
protected void |
onException(WroRuntimeException e)
Invoked when an unexpected exception occurred during processing. |
void |
process(Reader reader,
Writer writer)
|
void |
process(Resource resource,
Reader reader,
Writer writer)
|
CssLintProcessor |
setOptions(String... options)
Deprecated. |
CssLintProcessor |
setOptionsAsString(String options)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ALIAS
| Constructor Detail |
|---|
public CssLintProcessor()
| Method Detail |
|---|
public void process(Resource resource,
Reader reader,
Writer writer)
throws IOException
process in interface ResourcePreProcessorIOExceptionprotected void onException(WroRuntimeException e)
protected CssLint newCssLint()
CssLint instance.
public void process(Reader reader,
Writer writer)
throws IOException
process in interface ResourcePostProcessorIOException
protected void onCssLintException(CssLintException e,
Resource resource)
CssLintException is thrown. Allows subclasses to re-throw this exception as a
RuntimeException or handle it differently.
e - CssLintException which has occurred.resource - the processed resource which caused the exception.public CssLintProcessor setOptionsAsString(String options)
options - a CSV representation of options.@Deprecated public CssLintProcessor setOptions(String... options)
setOptionsAsString(String) instead.
protected String createDefaultOptions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||