Class CssLint
java.lang.Object
ro.isdc.wro.extensions.processor.support.csslint.CssLint
CssLint script engine utility. The underlying implementation uses
CSSLint script utility.
The underlying csslint version is 0.9.10.
- Since:
- 1.3.8
- Author:
- Alex Objelean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected InputStreamsetOptions(String options) voidValidates a css resource using cssLint and throwsCssLintExceptionif the resource is invalid.
-
Constructor Details
-
CssLint
public CssLint()
-
-
Method Details
-
getScriptAsStream
- Returns:
- the stream of the csslint script. Override this method to provide a different script version.
-
validate
Validates a css resource using cssLint and throwsCssLintExceptionif the resource is invalid. If no exception is thrown, the resource is valid.- Parameters:
data- css content to process.- Throws:
CssLintException- when parsed css has some kind of problems.
-
setOptions
- Parameters:
options- CSV representation of the options.
-