This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Issues.Reporting.
Summary
Creates a report for a list of issues with the specific settings.
- Assembly
- Cake
.Issues .Reporting .dll - Namespace
- Cake
.Issues .Reporting - Containing Type
- Aliases
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 |
---|---|
Cake |
|
Cake |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
issueProviders | IEnumerable |
Issue providers for whose issues the report should be generated. |
reportFormat | IIssueReportFormat | Format in which the report should be generated. |
settings | I |
The settings. |
Return Value
Type | Description |
---|---|
FilePath | Path to the created report or null if report could not be created. |