MarkdownlintIssuesAliases.

MarkdownlintAddRuleUrlResolver(ICakeContext, Func<MarkdownlintRuleDescription, Uri>, int) Method

Summary

Registers a new URL resolver with a specific priority.

Syntax

public static void MarkdownlintAddRuleUrlResolver(this ICakeContext context, Func<MarkdownlintRuleDescription, Uri> resolver, int priority)

Examples

Adds a provider of priority 5 returning a link for all rules with Id smaller than 20 to search with Google for the rule:

MarkdownlintAddRuleUrlResolver(x =>
    x.RuleId < 20 ?
    new Uri("https://www.google.com/search?q=%22" + x.Rule + ":%22+") :
    null,
    5)

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
resolver Func<MarkdownlintRuleDescription, Uri> Resolver which returns an System.Uri linking to a site containing help for a specific MarkdownlintRuleDescription.
priority int Priority of the resolver. Resolver with a higher priority are considered first during resolving of the URL.

Return Value

Type Description
void
GitHub