class XDocsReporter extends java.lang.Object
The reporter controls the generation of the Spotbugs report.
| Type | Name and description |
|---|---|
static java.lang.String |
NOLINE_KEYThe key to get the value if the line number is not available. |
java.util.List<java.lang.String> |
bugClassesBug Classes. |
java.util.ResourceBundle |
bundleThe bundle to get the messages from. |
java.util.List<java.lang.String> |
compileSourceRootsThe directories containing the sources to be compiled. |
java.lang.String |
effortThe used effort for searching bugs. |
Log |
logThe logger to write logs to. |
java.nio.charset.Charset |
outputEncodingThe output encoding. |
groovy.xml.slurpersupport.GPathResult |
spotbugsResultsSpotbugs Results. |
java.util.List<java.lang.String> |
testSourceRootsThe directories containing the test sources to be compiled. |
java.lang.String |
thresholdThe threshold of bugs severity. |
| Constructor and description |
|---|
XDocsReporter(java.util.ResourceBundle bundle, Log log, java.lang.String threshold, java.lang.String effort, java.nio.charset.Charset outputEncoding)Default constructor. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected static java.lang.String |
evaluateThresholdParameter(java.lang.String thresholdValue)Returns the threshold string value for the integer input. |
|
void |
generateReport(java.io.Writer outputWriter)Generate report. |
|
protected static java.lang.String |
getSpotBugsVersion()Gets the Spotbugs Version of the report. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
The key to get the value if the line number is not available.
Bug Classes.
The bundle to get the messages from.
The directories containing the sources to be compiled.
The used effort for searching bugs.
The logger to write logs to.
The output encoding.
Spotbugs Results.
The directories containing the test sources to be compiled.
The threshold of bugs severity.
Default constructor.
bundle
- The Resource Bundle to uselog - the logthreshold - the thresholdeffort - the effortoutputEncoding - the output encodingReturns the threshold string value for the integer input.
thresholdValue
- The ThresholdValue integer to evaluate.Generate report.
Gets the Spotbugs Version of the report.
spotbugs-maven-plugin Groovy Documentation