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

public class CssLint extends Object
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 Details

    • CssLint

      public CssLint()
  • Method Details

    • 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 css resource using cssLint and throws CssLintException if 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

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