Skip to content

Commit

Permalink
Fix diagnostic rule to be warning and not error (#1711)
Browse files Browse the repository at this point in the history
* Fix rule to be warning and not error

* Update URL
  • Loading branch information
manodasanW authored Aug 7, 2024
1 parent eebf9ae commit 98122be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Authoring/WinRT.SourceGenerator/WinRTRules.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ private static DiagnosticDescriptor MakeRule(string id, string title, string mes
category: "Usage",
defaultSeverity: isError ? DiagnosticSeverity.Error : isWarning? DiagnosticSeverity.Warning : DiagnosticSeverity.Info,
isEnabledByDefault: true,
helpLinkUri: "https://github.com/microsoft/CsWinRT/tree/master/src/Authoring/WinRT.SourceGenerator/AnalyzerReleases.Unshipped.md");
helpLinkUri: "https://github.com/microsoft/CsWinRT/tree/master/src/Authoring/WinRT.SourceGenerator/AnalyzerReleases.Shipped.md");
}

public static DiagnosticDescriptor PrivateGetterRule = MakeRule(
Expand Down Expand Up @@ -197,6 +197,7 @@ private static DiagnosticDescriptor MakeRule(string id, string title, string mes
"CsWinRT1029",
CsWinRTDiagnosticStrings.ClassImplementsOldProjection_Brief,
CsWinRTDiagnosticStrings.ClassImplementsOldProjection_Text,
false,
true);

public static DiagnosticDescriptor ClassNotAotCompatibleOldProjectionInfo = MakeRule(
Expand Down

0 comments on commit 98122be

Please sign in to comment.