Aliases.

ReadIssues(ICakeContext, IEnumerable<IIssueProvider>, ReadIssuesSettings) Method

Summary

Reads issues from issue providers using the specified settings.
Assembly
Cake.Issues.dll
Namespace
Cake.Issues
Containing Type
Aliases

Syntax

public static IEnumerable<IIssue> ReadIssues(this ICakeContext context, IEnumerable<IIssueProvider> issueProviders, ReadIssuesSettings settings)

Examples

Read issues reported as MsBuild warnings and issues reported by JetBrains inspect code with comments formatted as Markdown:

 var settings =
         new ReadIssuesSettings(@"c:\repo")
         {
             Format = IssueCommentFormat.Markdown
         };

     var issues =
         ReadIssues(
             new List<IIssueProvider>
             {
                 MsBuildIssuesFromFilePath(
                     @"C:\build\msbuild.log",
                     MsBuildXmlFileLoggerFormat),
                 InspectCodeIssuesFromFilePath(
                     @"C:\build\inspectcode.log")
             },
             settings));

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
issueProviders IEnumerable<IIssueProvider> The list of provider for issues.
settings ReadIssuesSettings The settings.

Return Value

Type Description
IEnumerable<IIssue> Issues reported by all issue providers.
GitHub