Class AnnotatedReport
java.lang.Object
io.jenkins.plugins.analysis.core.steps.AnnotatedReport
- All Implemented Interfaces:
- Serializable
A report of issues and the associated blame information, i.e., author and commit information of the SCM.
- Author:
- Ullrich Hafner
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new instance ofAnnotatedReport.AnnotatedReport(String id, edu.hm.hafner.analysis.Report report) Creates a new instance ofAnnotatedReport.AnnotatedReport(String id, edu.hm.hafner.analysis.Report report, io.jenkins.plugins.forensics.blame.Blames blames) Creates a new instance ofAnnotatedReport.AnnotatedReport(String id, edu.hm.hafner.analysis.Report report, io.jenkins.plugins.forensics.blame.Blames blames, io.jenkins.plugins.forensics.miner.RepositoryStatistics statistics) Creates a new instance ofAnnotatedReport.AnnotatedReport(String id, Iterable<AnnotatedReport> reports) Creates a new instance ofAnnotatedReportas an aggregation of the specified reports.AnnotatedReport(String id, List<AnnotatedReport> reports) Creates a new instance ofAnnotatedReportas an aggregation of the specified reports.
- 
Method SummaryModifier and TypeMethodDescriptionvoidadd(AnnotatedReport other) Appends the specifiedreportto this report.voidadd(AnnotatedReport other, String actualId) Appends the specifiedreportto this report.voidaddAll(Collection<AnnotatedReport> reports) Appends the specifiedreportsto this report.voidaddRepositoryStatistics(io.jenkins.plugins.forensics.miner.RepositoryStatistics statistics) Adds the specified repository statistics to this report.io.jenkins.plugins.forensics.blame.BlamesReturns the aggregated blames for all reports.getId()Returns the ID of this report.Returns a read only view for the issues of this report.edu.hm.hafner.util.FilteredLogReturns a logger that contains all info and error messages of the aggregated report.edu.hm.hafner.analysis.ReportReturns the aggregated report.Returns the number of issues per origin.io.jenkins.plugins.forensics.miner.RepositoryStatisticsReturns the aggregated statistics for all reports.voidLogs the specified information message.intsize()Returns the total number of issues of the aggregated reports.
- 
Constructor Details- 
AnnotatedReportCreates a new instance ofAnnotatedReport. Blames and report will be initialized empty.- Parameters:
- id- the ID of the report
 
- 
AnnotatedReportCreates a new instance ofAnnotatedReport. The SCM blames will be initialized empty.- Parameters:
- id- the ID of the report
- report- report with issues
 
- 
AnnotatedReportpublic AnnotatedReport(String id, edu.hm.hafner.analysis.Report report, io.jenkins.plugins.forensics.blame.Blames blames) Creates a new instance ofAnnotatedReport.- Parameters:
- id- ID of the report
- report- report with issues
- blames- author and commit information for affected files
 
- 
AnnotatedReportpublic AnnotatedReport(String id, edu.hm.hafner.analysis.Report report, io.jenkins.plugins.forensics.blame.Blames blames, io.jenkins.plugins.forensics.miner.RepositoryStatistics statistics) Creates a new instance ofAnnotatedReport.- Parameters:
- id- ID of the report
- report- report with issues
- blames- author and commit information for affected files
- statistics- repository statistics for affected files
 
- 
AnnotatedReportCreates a new instance ofAnnotatedReportas an aggregation of the specified reports.- Parameters:
- id- the ID of the report
- reports- the reports to aggregate
 
- 
AnnotatedReportCreates a new instance ofAnnotatedReportas an aggregation of the specified reports.- Parameters:
- id- the ID of the report
- reports- the reports to aggregate
 
 
- 
- 
Method Details- 
getSizeOfOriginReturns the number of issues per origin.- Returns:
- number of issues per origin
 
- 
getIssuesReturns a read only view for the issues of this report.- Returns:
- the issues
 
- 
getReportpublic edu.hm.hafner.analysis.Report getReport()Returns the aggregated report.- Returns:
- the aggregated report
 
- 
getBlamespublic io.jenkins.plugins.forensics.blame.Blames getBlames()Returns the aggregated blames for all reports.- Returns:
- the aggregated blames
 
- 
getStatisticspublic io.jenkins.plugins.forensics.miner.RepositoryStatistics getStatistics()Returns the aggregated statistics for all reports.- Returns:
- the aggregated statistics
 
- 
getIdReturns the ID of this report.- Returns:
- the ID
 
- 
sizepublic int size()Returns the total number of issues of the aggregated reports.- Returns:
- total number of issues
 
- 
logInfoLogs the specified information message. Use this method to log any useful information when composing this report.- Parameters:
- format- A format string
- args- Arguments referenced by the format specifiers in the format string. If there are more arguments than format specifiers, the extra arguments are ignored. The number of arguments is variable and may be zero.
 
- 
addAllAppends the specifiedreportsto this report. This report will then contain the issues of all specified reports, in the same order. The reports will be added with the ID of the added report.- Parameters:
- reports- the reports to append
 
- 
addAppends the specifiedreportto this report. This report will then contain the issues of the specified reports, appended to the end and in the same order. The report will be added with the specified ID.- Parameters:
- other- the other report to append
- actualId- the ID to use when adding the report
 
- 
addAppends the specifiedreportto this report. This report will then contain the issues of the specified reports, appended to the end and in the same order. The report will be added with the default ID of this report.- Parameters:
- other- the other report to append
 
- 
addRepositoryStatisticspublic void addRepositoryStatistics(io.jenkins.plugins.forensics.miner.RepositoryStatistics statistics) Adds the specified repository statistics to this report.- Parameters:
- statistics- the additional statistic
 
- 
getLoggerpublic edu.hm.hafner.util.FilteredLog getLogger()Returns a logger that contains all info and error messages of the aggregated report. Note that this logger will not automatically update itself when new messages that are added to the report afterward.- Returns:
- the logger with all messages
 
 
-