SarifIssuesAliases.

SarifIssues(ICakeContext, SarifIssuesSettings) Method

Summary

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

Syntax

public static IIssueProvider SarifIssues(this ICakeContext context, SarifIssuesSettings settings)

Examples

Read issues from a SARIF compatible file:

 var settings =
         new SarifIssuesSettings(
             @"c:\build\log.sarif));

     var issues =
         ReadIssues(
             SarifIssues(settings),
             @"c:\repo");

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
settings SarifIssuesSettings Settings for reading the SARIF compatible file.

Return Value

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