From 3e5edda958a88e799456ab787a16ff34b7df53e0 Mon Sep 17 00:00:00 2001 From: Mateo Torres-Ruiz Date: Thu, 2 Sep 2021 18:22:18 -0700 Subject: [PATCH] Tag analyzer diagnostics as non configurable (#2252) --- src/ILLink.RoslynAnalyzer/DiagnosticDescriptors.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/ILLink.RoslynAnalyzer/DiagnosticDescriptors.cs b/src/ILLink.RoslynAnalyzer/DiagnosticDescriptors.cs index 437ffa4c21f4..6edfb3b18d9c 100644 --- a/src/ILLink.RoslynAnalyzer/DiagnosticDescriptors.cs +++ b/src/ILLink.RoslynAnalyzer/DiagnosticDescriptors.cs @@ -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) @@ -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, @@ -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 (), @@ -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)