Summary
Creates a report for a list of issues with the specific settings.
Syntax
public static FilePath CreateIssueReport(this ICakeContext context, IEnumerable<IIssueProvider> issueProviders, IIssueReportFormat reportFormat, ICreateIssueReportFromIssueProviderSettings settings)
Examples
Create HTML report using the diagnostic template:
var settings =
new CreateIssueReportFromIssueProviderSettings(
@"c:\repo",
@"c:\report.html");
CreateIssueReport(
new List<IIssueProvider>
{
MsBuildIssuesFromFilePath(
@"C:\build\msbuild.log",
MsBuildXmlFileLoggerFormat),
InspectCodeIssuesFromFilePath(
@"C:\build\inspectcode.log",
MsBuildXmlFileLoggerFormat)
},
GenericIssueReportFormatFromEmbeddedTemplate(GenericIssueReportTemplate.HtmlDiagnostic),
settings);
Attributes
Type |
Description |
CakeMethodAliasAttribute |
|
CakeAliasCategoryAttribute |
|
Parameters
Return Value
Type |
Description |
FilePath |
Path to the created report or null if report could not be created. |