class FindbugsReportGenerator extends java.lang.Object
The reporter controls the generation of the FindBugs report. It contains call back methods which gets called by FindBugs if a bug is found.
Type | Name and description |
---|---|
static java.lang.String |
COLUMN_BUGS_KEY The key to get the column title for the bugs. |
static java.lang.String |
COLUMN_BUG_KEY The key to get the column title for the bug. |
static java.lang.String |
COLUMN_CATEGORY_KEY The key to get the column title for the category. |
static java.lang.String |
COLUMN_CLASSES_KEY The key to column title for the Classes. |
static java.lang.String |
COLUMN_CLASS_KEY The key to column title for the Class. |
static java.lang.String |
COLUMN_DETAILS_KEY The key to get the column title for the details. |
static java.lang.String |
COLUMN_ERRORS_KEY The key to column title for the errors. |
static java.lang.String |
COLUMN_FILES_KEY The key to column title for the files. |
static java.lang.String |
COLUMN_LINE_KEY The key to get the column title for the line. |
static java.lang.String |
COLUMN_MISSINGCLASSES_KEY The key to column title for the files. |
static java.lang.String |
COLUMN_PRIORITY_KEY The key to get the column title for the priority. |
static java.lang.String |
DETAILSLINK_KEY The key to get the link to FindBugs description page from the bundle. |
static java.lang.String |
EFFORT_KEY The key to get the effort of the report from the bundle. |
static java.lang.String |
FILES_KEY The key to get the files title of the Plug-In from the bundle. |
static java.lang.String |
LINKTITLE_KEY The key to get the report link title of the Plug-In from the bundle. |
static java.lang.String |
LINK_KEY The key to get the report link of the Plug-In from the bundle. |
static java.lang.String |
NOLINE_KEY The key to get the value if the line number is not available. |
static java.lang.String |
REPORT_TITLE_KEY The key to get the report title of the Plug-In from the bundle. |
static java.lang.String |
SUMMARY_KEY The key to get the files title of the Plug-In from the bundle. |
static java.lang.String |
THRESHOLD_KEY The key to get the threshold of the report from the bundle. |
static java.lang.String |
VERSIONTITLE_KEY The key to get the version title for FindBugs from the bundle. |
java.io.File |
basedir |
java.util.List |
bugClasses |
int |
bugCount The running total of bugs reported. |
java.util.ResourceBundle |
bundle The bundle to get the messages from. |
java.util.List |
compileSourceRoots The directories containing the sources to be compiled. |
java.lang.String |
currentClassName The name of the current class which is analysed by FindBugs. |
java.lang.String |
effort The used effort for searching bugs. |
int |
errorCount The running total of errors reported. |
int |
fileCount The running total of files analyzed. |
groovy.util.slurpersupport.GPathResult |
findbugsResults |
boolean |
includeTests Run Findbugs on the tests. |
boolean |
isJXRReportEnabled Signals if the jxr report plugin is enabled. |
org.apache.maven.plugin.logging.Log |
log The logger to write logs to. |
boolean |
mIsCurrentClassReportOpened Signals if the report for the current class is opened. |
int |
missingClassCount The running total of missing classes reported. |
java.util.Set |
missingClassSet The Set of missing classes names reported. |
java.io.File |
outputDirectory Location where generated html will be created. |
org.apache.maven.doxia.sink.Sink |
sink The sink to write the report to. |
org.apache.maven.doxia.tools.SiteTool |
siteTool "org.apache.maven.doxia.tools.SiteTool" |
java.util.List |
testSourceRoots The directories containing the test-sources to be compiled. |
java.lang.String |
threshold The threshold of bugs severity. |
java.io.File |
xrefLocation Location of the Xrefs to link to. |
java.io.File |
xrefTestLocation Location of the Test Xrefs to link to. |
Constructor and description |
---|
FindbugsReportGenerator
(org.apache.maven.doxia.sink.Sink sink, java.util.ResourceBundle bundle, java.io.File basedir, org.apache.maven.doxia.tools.SiteTool siteTool) Default constructor. |
Type Params | Return Type | Name and description |
---|---|---|
|
protected java.lang.String |
assembleJxrHyperlink(groovy.util.slurpersupport.GPathResult line) Assembles the hyperlink to point to the source code. |
|
private void |
doHeading() Prints the top header sections of the report. |
|
void |
generateReport() Class Summary |
|
protected java.lang.String |
getReportTitle() Gets the report title. |
|
protected void |
openClassReportSection(java.lang.String bugClass) Initialised a bug report section in the report for a particular class. |
|
void |
printBody() @see edu.umd.cs.findbugs.BugReporter#finish() |
|
protected void |
printBug(java.lang.String bugClass) Print the bug collection to a line in the table |
|
protected void |
printFilesSummary() Print the File Summary Section. |
|
protected void |
printSummary() Print the Summary Section. |
|
protected java.lang.String |
valueForLine(groovy.util.slurpersupport.GPathResult line) Return the value to display. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The key to get the column title for the bugs.
The key to get the column title for the bug.
The key to get the column title for the category.
The key to column title for the Classes.
The key to column title for the Class.
The key to get the column title for the details.
The key to column title for the errors.
The key to column title for the files.
The key to get the column title for the line.
The key to column title for the files.
The key to get the column title for the priority.
The key to get the link to FindBugs description page from the bundle.
The key to get the effort of the report from the bundle.
The key to get the files title of the Plug-In from the bundle.
The key to get the report link title of the Plug-In from the bundle.
The key to get the report link of the Plug-In from the bundle.
The key to get the value if the line number is not available.
The key to get the report title of the Plug-In from the bundle.
The key to get the files title of the Plug-In from the bundle.
The key to get the threshold of the report from the bundle.
The key to get the version title for FindBugs from the bundle.
The running total of bugs reported.
The bundle to get the messages from.
The directories containing the sources to be compiled.
The name of the current class which is analysed by FindBugs.
The used effort for searching bugs.
The running total of errors reported.
The running total of files analyzed.
Run Findbugs on the tests.
Signals if the jxr report plugin is enabled.
The logger to write logs to.
Signals if the report for the current class is opened.
The running total of missing classes reported.
The Set of missing classes names reported.
Location where generated html will be created.
The sink to write the report to.
"org.apache.maven.doxia.tools.SiteTool"
The directories containing the test-sources to be compiled.
The threshold of bugs severity.
Location of the Xrefs to link to.
Location of the Test Xrefs to link to.
Default constructor.
sink
- The sink to generate the report.bundle
- The resource bundle to get the messages from.basedir
- The project base directory.siteTool
- Doxia SiteTool Handle.Assembles the hyperlink to point to the source code.
line
- The line number object with the bug.lineNumber
- The line number to show in the hyperlink.Prints the top header sections of the report.
Class Summary
Gets the report title.
Initialised a bug report section in the report for a particular class.
Print the bug collection to a line in the table
bugInstance
- the bug to printPrint the File Summary Section.
Print the Summary Section.
Return the value to display. If FindBugs does not provide a line number, a default message is returned. The line number otherwise.
line
- The line to get the value from.Groovy Documentation