@Mojo(name="check", defaultPhase=VERIFY, threadSafe=true) @Execute(goal="pmd") public class PmdViolationCheckMojo extends AbstractPmdViolationCheckMojo<Violation>
aggregate, failOnViolation, project
Constructor and Description |
---|
PmdViolationCheckMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
protected List<Violation> |
getErrorDetails(File pmdFile)
Gets the attributes and text for the violation tag and puts them in a HashMap
|
protected int |
getPriority(Violation errorDetail) |
protected boolean |
isExcludedFromFailure(Violation errorDetail) |
protected void |
loadExcludeFromFailuresData(String excludeFromFailureFile) |
protected ViolationDetails<Violation> |
newViolationDetailsInstance() |
protected void |
printError(Violation item,
String severity)
Formats the failure details and prints them as an INFO message
|
executeCheck, isFailOnViolation, printErrors
getLog, getPluginContext, setLog, setPluginContext
public void execute() throws MojoExecutionException, MojoFailureException
protected void loadExcludeFromFailuresData(String excludeFromFailureFile) throws MojoExecutionException
loadExcludeFromFailuresData
in class AbstractPmdViolationCheckMojo<Violation>
MojoExecutionException
protected boolean isExcludedFromFailure(Violation errorDetail)
isExcludedFromFailure
in class AbstractPmdViolationCheckMojo<Violation>
protected void printError(Violation item, String severity)
printError
in class AbstractPmdViolationCheckMojo<Violation>
protected List<Violation> getErrorDetails(File pmdFile) throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException
AbstractPmdViolationCheckMojo
getErrorDetails
in class AbstractPmdViolationCheckMojo<Violation>
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException
protected int getPriority(Violation errorDetail)
getPriority
in class AbstractPmdViolationCheckMojo<Violation>
protected ViolationDetails<Violation> newViolationDetailsInstance()
newViolationDetailsInstance
in class AbstractPmdViolationCheckMojo<Violation>
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.