Class CssLintMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    public class CssLintMojo
    extends AbstractLinterMojo<ro.isdc.wro.extensions.processor.support.csslint.CssLintError>
    Maven plugin used to validate css code defined in wro model.
    Since:
    1.3.8
    Author:
    Alex Objelean
    • Constructor Detail

      • CssLintMojo

        public CssLintMojo()
    • Method Detail

      • wantProcessGroup

        protected boolean wantProcessGroup​(java.lang.String groupName,
                                           ro.isdc.wro.model.resource.ResourceType resourceType)
        Description copied from class: AbstractSingleProcessorMojo
        Allow subclasses to decide if a group needs to be processed. Useful for plugins which process only resources of a certain type (ex: jshint).
        Overrides:
        wantProcessGroup in class AbstractSingleProcessorMojo
        Returns:
        true if the resource of a certain type from a group should be processed.
      • createXmlFormatter

        protected ro.isdc.wro.extensions.support.lint.ReportXmlFormatter createXmlFormatter​(ro.isdc.wro.extensions.support.lint.LintReport<ro.isdc.wro.extensions.processor.support.csslint.CssLintError> lintReport,
                                                                                            ro.isdc.wro.extensions.support.lint.ReportXmlFormatter.FormatterType type)
        Specified by:
        createXmlFormatter in class AbstractLinterMojo<ro.isdc.wro.extensions.processor.support.csslint.CssLintError>
        Returns:
        an instance of ReportXmlFormatter responsible for generating lint report.
      • getReportFile

        protected java.io.File getReportFile()
        Specified by:
        getReportFile in class AbstractLinterMojo<ro.isdc.wro.extensions.processor.support.csslint.CssLintError>
        Returns:
        the file where the report should be written.
      • getReportFormat

        protected java.lang.String getReportFormat()
        Specified by:
        getReportFormat in class AbstractLinterMojo<ro.isdc.wro.extensions.processor.support.csslint.CssLintError>
        Returns:
        the preferred format of the report.