Summary
Gets an instance of a provider for code analysis issues reported by ESLint using specified settings.
Syntax
public static ICodeAnalysisProvider EsLintIssues(this ICakeContext context, EsLintIssuesSettings settings)
Examples
Report code analysis issues reported by ESLint to a TFS pull request:
var repoRoot = new DirectoryPath("c:\repo");
var settings =
new EsLintIssuesSettings(
new FilePath("C:\build\ESLint.log"));
ReportIssuesToPullRequest(
EsLintIssues(settings),
TfsPullRequests(
new Uri("http://myserver:8080/tfs/defaultcollection/myproject/_git/myrepository"),
"refs/heads/feature/myfeature",
TfsAuthenticationNtlm()),
repoRoot);
Attributes
Type |
Description |
CakeAliasCategoryAttribute |
|
CakeMethodAliasAttribute |
|
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
settings |
EsLintIssuesSettings |
Settings for reading the ESLint log. |
Return Value
Type |
Description |
ICodeAnalysisProvider |
Instance of a provider for code analysis issues reported by ESLint. |