Skip to content

Commit

Permalink
Use org profile links for diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed Jun 7, 2024
1 parent d74f511 commit b03392d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/SponsorLink/SponsorLink/DiagnosticsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public Diagnostic Push(string product, Diagnostic diagnostic)
DiagnosticSeverity.Info,
isEnabledByDefault: true,
description: ThisAssembly.Strings.Sponsor.Description,
helpLinkUri: ThisAssembly.Git.Url,
helpLinkUri: "https://github.com/devlooped#sponsorlink",
"DoesNotSupportF1Help");

static DiagnosticDescriptor CreateUnknown(string[] sponsorable, string product, string prefix) => new(
Expand All @@ -112,7 +112,7 @@ public Diagnostic Push(string product, Diagnostic diagnostic)
description: ThisAssembly.Strings.Unknown.Description(
sponsorable.Humanize(x => $"https://github.com/sponsors/{x}"),
string.Join(" ", sponsorable)),
helpLinkUri: "https://www.devlooped.com/SponsorLink/",
helpLinkUri: "https://github.com/devlooped#sponsorlink",
WellKnownDiagnosticTags.NotConfigurable);

static DiagnosticDescriptor CreateExpiring(string[] sponsorable, string prefix) => new(
Expand All @@ -123,7 +123,7 @@ public Diagnostic Push(string product, Diagnostic diagnostic)
DiagnosticSeverity.Warning,
isEnabledByDefault: true,
description: ThisAssembly.Strings.Expiring.Description(string.Join(" ", sponsorable)),
helpLinkUri: "https://www.devlooped.com/SponsorLink/github.html#auto-sync",
helpLinkUri: "https://github.com/devlooped#autosync",
"DoesNotSupportF1Help", WellKnownDiagnosticTags.NotConfigurable);

static DiagnosticDescriptor CreateExpired(string[] sponsorable, string prefix) => new(
Expand All @@ -134,6 +134,6 @@ public Diagnostic Push(string product, Diagnostic diagnostic)
DiagnosticSeverity.Warning,
isEnabledByDefault: true,
description: ThisAssembly.Strings.Expired.Description(string.Join(" ", sponsorable)),
helpLinkUri: "https://www.devlooped.com/SponsorLink/github.html#auto-sync",
helpLinkUri: "https://github.com/devlooped#autosync",
"DoesNotSupportF1Help", WellKnownDiagnosticTags.NotConfigurable);
}

0 comments on commit b03392d

Please sign in to comment.