@SupportedResourceType(value=CSS) public class CssLintProcessor extends Object implements ResourcePreProcessor, ResourcePostProcessor, Destroyable
://github.com/stubbornella/csslint.| Constructor and Description |
|---|
CssLintProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createDefaultOptions() |
void |
destroy() |
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 |
setOptionsAsString(String options) |
public static final String ALIAS
public void process(Resource resource, Reader reader, Writer writer) throws IOException
process in interface ResourcePreProcessorIOExceptionprotected void onException(WroRuntimeException e)
public void process(Reader reader, Writer writer) throws IOException
process in interface ResourcePostProcessorIOExceptionprotected 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.protected String createDefaultOptions()
public void destroy()
throws Exception
destroy in interface DestroyableExceptionCopyright © 2008-2016. All Rights Reserved.