EsLintIssuesAliases.

EsLintIssuesFromContent(ICakeContext, string, ILogFileFormat) Method

Summary

Gets an instance of a provider for code analysis issues reported by ESLint using log file content.

Syntax

public static ICodeAnalysisProvider EsLintIssuesFromContent(this ICakeContext context, string logFileContent, ILogFileFormat format)

Examples

Report code analysis issues reported by ESLint to a TFS pull request:

var repoRoot = new DirectoryPath("c:\repo");
    ReportIssuesToPullRequest(
        EsLintIssuesFromContent(
            logFileContent),
        TfsPullRequests(
            new Uri("http://myserver:8080/tfs/defaultcollection/myproject/_git/myrepository"),
            "refs/heads/feature/myfeature",
            TfsAuthenticationNtlm()),
        repoRoot);

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
logFileContent string Content of the the ESLint log file. The log file needs to be in the format as defined by the format parameter.
format ILogFileFormat Format of the provided ESLint log file.

Return Value

Type Description
ICodeAnalysisProvider Instance of a provider for code analysis issues reported by ESLint.
GitHub