SarifIssuesAliases.

SarifIssuesFromContent(ICakeContext, string) Method

Summary

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

Syntax

public static IIssueProvider SarifIssuesFromContent(this ICakeContext context, string logFileContent)

Examples

Read issues from a SARIF compatible file:

var issues =
        ReadIssues(
            SarifIssuesFromContent(logFileContent)),
            @"c:\repo");

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
logFileContent string Content of the SARIF compatible file.

Return Value

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