Summary
Gets an instance of a provider for code analysis issues reported by Markdownlint using log file content.
Syntax
public static ICodeAnalysisProvider MarkdownlintIssuesFromContent(this ICakeContext context, string logFileContent)
Examples
Report code analysis issues reported by Markdownlint to a TFS pull request:
var repoRoot = new DirectoryPath("c:\repo");
ReportIssuesToPullRequest(
MarkdownlintIssuesFromContent(
logFileContent),
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. |
logFileContent |
string |
Content of the the Markdownlint log file. |
Return Value
Type |
Description |
ICodeAnalysisProvider |
Instance of a provider for code analysis issues reported by Markdownlint. |