Aliases.

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

Summary

Reads issues from issue providers.
Assembly
Cake.Issues.dll
Namespace
Cake.Issues
Containing Type
Aliases

Syntax

public static IEnumerable<IIssue> ReadIssues(this ICakeContext context, IEnumerable<IIssueProvider> issueProviders, DirectoryPath repositoryRoot)

Examples

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

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

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
issueProviders IEnumerable<IIssueProvider> The list of provider for issues.
repositoryRoot DirectoryPath Root path of the repository.

Return Value

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