Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4 from cake-contrib/feature/GH-2
Browse files Browse the repository at this point in the history
(GH-2) Add MarkdownlintIssuesProviderTypeName alias
  • Loading branch information
pascalberger authored Sep 9, 2017
2 parents f1978e8 + 954b02a commit f9ab9d6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Cake.Issues.Markdownlint/MarkdownlintIssuesAliases.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@
[CakeAliasCategory(IssuesAliasConstants.MainCakeAliasCategory)]
public static class MarkdownlintIssuesAliases
{
/// <summary>
/// Gets the name of the Markdownlint issue provider.
/// This name can be used to identify issues based on the <see cref="IIssue.ProviderType"/> property.
/// </summary>
/// <param name="context">The context.</param>
/// <returns>Name of the Markdownlint issue provider.</returns>
[CakePropertyAlias]
[CakeAliasCategory(IssuesAliasConstants.IssueProviderCakeAliasCategory)]
public static string MarkdownlintIssuesProviderTypeName(
this ICakeContext context)
{
context.NotNull(nameof(context));

return Issue<MarkdownlintIssuesProvider>.GetProviderTypeName();
}

/// <summary>
/// Gets an instance of a provider for issues reported by Markdownlint using a log file from disk.
/// </summary>
Expand Down

0 comments on commit f9ab9d6

Please sign in to comment.