Package ro.isdc.wro.maven.plugin
Class JsHintMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="jshint",
defaultPhase=COMPILE,
requiresDependencyResolution=RUNTIME)
public class JsHintMojo
extends AbstractLinterMojo<LinterError>
Maven plugin used to validate js scripts defined in wro model using
jsLint.
- Since:
- 1.3.5
- Author:
- Alex Objelean, Paul Podgorsek
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ResourcePreProcessorFactory method responsible for creating the processor which will be applied for this build.protected ReportXmlFormattercreateXmlFormatter(LintReport<LinterError> lintReport, ReportXmlFormatter.FormatterType type) protected Fileprotected Stringprotected booleanwantProcessGroup(String groupName, ResourceType resourceType) Allow subclasses to decide if a group needs to be processed.Methods inherited from class ro.isdc.wro.maven.plugin.AbstractLinterMojo
addReport, getProgressIndicator, isFailAllowed, isFailNever, onAfterExecute, onBeforeExecute, onProcessingResource, setFailFast, setFailNever, setFailThresholdMethods inherited from class ro.isdc.wro.maven.plugin.AbstractSingleProcessorMojo
doExecute, getOptions, newWroManagerFactoryMethods inherited from class ro.isdc.wro.maven.plugin.AbstractWro4jMojo
execute, extendPluginClasspath, getManagerFactory, getTargetGroupsAsList, getTaskExecutor, isIncrementalBuild, isIncrementalCheckRequired, isParallelProcessing, validateMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
JsHintMojo
public JsHintMojo()
-
-
Method Details
-
createResourceProcessor
Description copied from class:AbstractSingleProcessorMojoFactory method responsible for creating the processor which will be applied for this build.- Specified by:
createResourceProcessorin classAbstractSingleProcessorMojo
-
wantProcessGroup
Description copied from class:AbstractSingleProcessorMojoAllow subclasses to decide if a group needs to be processed. Useful for plugins which process only resources of a certain type (ex: jshint).- Overrides:
wantProcessGroupin classAbstractSingleProcessorMojo- Returns:
- true if the resource of a certain type from a group should be processed.
-
createXmlFormatter
protected ReportXmlFormatter createXmlFormatter(LintReport<LinterError> lintReport, ReportXmlFormatter.FormatterType type) - Specified by:
createXmlFormatterin classAbstractLinterMojo<LinterError>- Returns:
- an instance of
ReportXmlFormatterresponsible for generating lint report.
-
getReportFile
- Specified by:
getReportFilein classAbstractLinterMojo<LinterError>- Returns:
- the file where the report should be written.
-
getReportFormat
- Specified by:
getReportFormatin classAbstractLinterMojo<LinterError>- Returns:
- the preferred format of the report.
-