PrcaAliases.

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

Summary

Reads issues from issue providers.
Assembly
Cake.Prca.dll
Namespace
Cake.Prca
Containing Type
PrcaAliases

Syntax

public static IEnumerable<ICodeAnalysisIssue> ReadIssues(this ICakeContext context, IEnumerable<ICodeAnalysisProvider> issueProviders, DirectoryPath repositoryRoot)

Examples

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

var issues = ReadIssues(
        new List<ICodeAnalysisProvider>
        {
            MsBuildCodeAnalysisFromFilePath(
                @"C:\build\msbuild.log",
                MsBuildXmlFileLoggerFormat),
            InspectCodeFromFilePath(
                @"C:\build\inspectcode.log",
                MsBuildXmlFileLoggerFormat)
        },
        new DirectoryPath("c:\repo")));

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

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

Return Value

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