Aliases.

ReadIssues(ICakeContext, IEnumerable<IIssueProvider>, IReadIssuesSettings) 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, IReadIssuesSettings settings)

Examples

Read issues reported as MsBuild warnings and issues reported by JetBrains inspect code and set run information:

 var settings =
         new ReadIssuesSettings(@"c:\repo")
         {
             Run = "My run"
         };

     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 IReadIssuesSettings The settings.

Return Value

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