SarifIssuesAliases.

SarifIssuesFromFilePath(ICakeContext, FilePath) Method

Summary

Gets an instance of a provider for SARIF compatible files using a file from disk.
Assembly
Cake.Issues.Sarif.dll
Namespace
Cake.Issues.Sarif
Containing Type
SarifIssuesAliases

Syntax

public static IIssueProvider SarifIssuesFromFilePath(this ICakeContext context, FilePath logFilePath)

Examples

Read issues from a SARIF compatible file:

var issues =
        ReadIssues(
            SarifIssuesFromFilePath(@"c:\build\log.sarif"),
            @"c:\repo");

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
logFilePath FilePath Path to the SARIF file.

Return Value

Type Description
IIssueProvider Instance of a provider for SARIF compatible files.