Summary
Creates a report for a list of issues in the specified format.
Syntax
public static FilePath CreateIssueReport(this ICakeContext context, IEnumerable<IIssueProvider> issueProviders, IIssueReportFormat reportFormat, DirectoryPath repositoryRoot, FilePath outputFilePath)
Examples
Create HTML report using the diagnostic template:
CreateIssueReport(
new List<IIssueProvider>
{
MsBuildIssuesFromFilePath(
@"C:\build\msbuild.log",
MsBuildXmlFileLoggerFormat),
InspectCodeIssuesFromFilePath(
@"C:\build\inspectcode.log",
MsBuildXmlFileLoggerFormat)
},
GenericIssueReportFormatFromEmbeddedTemplate(GenericIssueReportTemplate.HtmlDiagnostic),
@"c:\repo",
@"c:\report.html");
Attributes
Type |
Description |
CakeMethodAliasAttribute |
|
CakeAliasCategoryAttribute |
|
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
issueProviders |
IEnumerable<IIssueProvider> |
Issue providers for whose issues the report should be generated. |
reportFormat |
IIssueReportFormat |
Format in which the report should be generated. |
repositoryRoot |
DirectoryPath |
Root path of the repository. |
outputFilePath |
FilePath |
Path of the generated report file. |
Return Value
Type |
Description |
FilePath |
Path to the created report or null if report could not be created. |