ro.isdc.wro.extensions.processor.support.csslint
Class CssLint

java.lang.Object
  extended by ro.isdc.wro.extensions.processor.support.csslint.CssLint

public class CssLint
extends Object

CssLint script engine utility. The underlying implementation uses CSSLint script utility
://github.com/stubbornella/csslint. The underlying csslint version is 0.9.10.

Since:
1.3.8
Author:
Alex Objelean

Constructor Summary
CssLint()
           
 
Method Summary
protected  InputStream getScriptAsStream()
           
 CssLint setOptions(String options)
           
 void validate(String data)
          Validates a js using jsHint and throws CssLintException if the js is invalid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CssLint

public CssLint()
Method Detail

getScriptAsStream

protected InputStream getScriptAsStream()
Returns:
the stream of the csslint script. Override this method to provide a different script version.

validate

public void validate(String data)
              throws CssLintException
Validates a js using jsHint and throws CssLintException if the js is invalid. If no exception is thrown, the js is valid.

Parameters:
data - js content to process.
Throws:
CssLintException - when parsed css has some kind of problems.

setOptions

public CssLint setOptions(String options)
Parameters:
options - CSV representation of the options.


Copyright © 2008-2013. All Rights Reserved.