Examples of CssLint


Examples of ro.isdc.wro.extensions.processor.support.csslint.CssLint

   */
  @Override
  public void process(final Resource resource, final Reader reader, final Writer writer)
    throws IOException {
    final String content = IOUtils.toString(reader);
    final CssLint cssLint = enginePool.getObject();
    try {
      cssLint.setOptions(getOptions()).validate(content);
    } catch (final CssLintException e) {
      onCssLintException(e, resource);
    } catch (final WroRuntimeException e) {
      final String resourceUri = resource == null ? StringUtils.EMPTY : "[" + resource.getUri() + "]";
      LOG.error("Exception while applying " + ALIAS + " processor on the " + resourceUri
View Full Code Here

Examples of ro.isdc.wro.extensions.processor.support.csslint.CssLint

  /**
   * @return {@link CssLint} instance.
   */
  protected CssLint newCssLint() {
    return new CssLint();
  }
View Full Code Here

Examples of ro.isdc.wro.extensions.processor.support.csslint.CssLint

  public CssLinterProcessor(final LintOptions options) {
    this.options = notNull(options, "The lint options are required.").build();
    enginePool = new ObjectPoolHelper<CssLint>(new ObjectFactory<CssLint>() {
      @Override
      public CssLint create() {
        return new CssLint();
      }
    });
  }
View Full Code Here

Examples of ro.isdc.wro.extensions.processor.support.csslint.CssLint

   */
  @Override
  public void process(final Resource resource, final Reader reader,
      final Writer writer) throws IOException {
    final String content = IOUtils.toString(reader);
    final CssLint cssLint = enginePool.getObject();
    try {
      cssLint.setOptions(join(options, ",")).validate(content);
    } catch (final CssLintException e) {
      onCssLintException(e, resource);
    } finally {
      // don't change the processed content no matter what happens.
      writer.write(content);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.