abstract class BaseViolationCheckMojo extends AbstractMojo
| Type | Name and description |
|---|---|
java.io.File |
classFilesDirectoryDirectory containing the class files for Spotbugs to analyze. |
boolean |
debugTurn on Spotbugs debugging. |
boolean |
failOnErrorFail the build on an error. |
java.lang.String |
failThresholdPriority threshold which bugs have to reach to cause a failure. |
boolean |
includeTestsRun Spotbugs on the tests. |
int |
maxAllowedViolationsspecified max number of violations which can be ignored by the spotbugs. |
boolean |
quietDisable bugs log. |
boolean |
skipSkip entire check. |
java.io.File |
spotbugsXmlOutputDirectorySpecifies the directory where the Spotbugs native xml output will be generated. |
java.lang.String |
spotbugsXmlOutputFilenameSet the name of the output XML file produced |
java.io.File |
testClassFilesDirectoryDirectory containing the test class files for Spotbugs to analyze. |
| Constructor and description |
|---|
BaseViolationCheckMojo() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected static java.lang.String |
bugLog(org.w3c.dom.Node bug) |
|
private boolean |
doSourceFilesExist() |
|
void |
execute() |
|
private void |
printBugs(groovy.util.NodeList bugs) |
|
private boolean |
walkFiles(java.util.List filesList, java.io.File filesDirectory, boolean foundFiles) |
Directory containing the class files for Spotbugs to analyze.
Turn on Spotbugs debugging.
Fail the build on an error.
Priority threshold which bugs have to reach to cause a failure. Valid values are High, Medium or Low. Bugs below this threshold will just issue a warning log entry.
Run Spotbugs on the tests.
specified max number of violations which can be ignored by the spotbugs.
Disable bugs log.
Skip entire check.
Specifies the directory where the Spotbugs native xml output will be generated.
Set the name of the output XML file produced
Directory containing the test class files for Spotbugs to analyze.
spotbugs-maven-plugin Groovy Documentation