Skip to content

Commit

Permalink
Tag analyzer diagnostics as non configurable (#2252)
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoatr authored Sep 3, 2021
1 parent c40ed49 commit 3e5edda
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/ILLink.RoslynAnalyzer/DiagnosticDescriptors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public static DiagnosticDescriptor GetDiagnosticDescriptor (DiagnosticId diagnos
diagnosticString.GetMessageFormat (),
GetDiagnosticCategory (diagnosticId),
DiagnosticSeverity.Warning,
true);
true,
customTags: WellKnownDiagnosticTags.NotConfigurable);
}

public static DiagnosticDescriptor GetDiagnosticDescriptor (DiagnosticId diagnosticId, DiagnosticString diagnosticString)
Expand All @@ -27,7 +28,8 @@ public static DiagnosticDescriptor GetDiagnosticDescriptor (DiagnosticId diagnos
diagnosticString.GetMessage (),
GetDiagnosticCategory (diagnosticId),
DiagnosticSeverity.Warning,
true);
true,
customTags: WellKnownDiagnosticTags.NotConfigurable);

public static DiagnosticDescriptor GetDiagnosticDescriptor (DiagnosticId diagnosticId,
LocalizableResourceString? lrsTitle = null,
Expand All @@ -45,7 +47,8 @@ public static DiagnosticDescriptor GetDiagnosticDescriptor (DiagnosticId diagnos
diagnosticCategory ?? GetDiagnosticCategory (diagnosticId),
diagnosticSeverity,
isEnabledByDefault,
helpLinkUri);
helpLinkUri,
customTags: WellKnownDiagnosticTags.NotConfigurable);
}

return new DiagnosticDescriptor (diagnosticId.AsString (),
Expand All @@ -54,7 +57,8 @@ public static DiagnosticDescriptor GetDiagnosticDescriptor (DiagnosticId diagnos
diagnosticCategory ?? GetDiagnosticCategory (diagnosticId),
diagnosticSeverity,
isEnabledByDefault,
helpLinkUri);
helpLinkUri,
customTags: WellKnownDiagnosticTags.NotConfigurable);
}

static string GetDiagnosticCategory (DiagnosticId diagnosticId)
Expand Down

0 comments on commit 3e5edda

Please sign in to comment.