Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateo Torres-Ruiz <mateoatr@users.noreply.github.com>2021-09-03 04:22:18 +0300
committerGitHub <noreply@github.com>2021-09-03 04:22:18 +0300
commit3e5edda958a88e799456ab787a16ff34b7df53e0 (patch)
treeb4a48bc31c59b1423083c624e1a1985ef1196039
parentc40ed49948225cda0c35ceaae64ae2b6d98bf776 (diff)
Tag analyzer diagnostics as non configurable (#2252)
-rw-r--r--src/ILLink.RoslynAnalyzer/DiagnosticDescriptors.cs12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/ILLink.RoslynAnalyzer/DiagnosticDescriptors.cs b/src/ILLink.RoslynAnalyzer/DiagnosticDescriptors.cs
index 437ffa4c2..6edfb3b18 100644
--- a/src/ILLink.RoslynAnalyzer/DiagnosticDescriptors.cs
+++ b/src/ILLink.RoslynAnalyzer/DiagnosticDescriptors.cs
@@ -18,7 +18,8 @@ namespace ILLink.RoslynAnalyzer
diagnosticString.GetMessageFormat (),
GetDiagnosticCategory (diagnosticId),
DiagnosticSeverity.Warning,
- true);
+ true,
+ customTags: WellKnownDiagnosticTags.NotConfigurable);
}
public static DiagnosticDescriptor GetDiagnosticDescriptor (DiagnosticId diagnosticId, DiagnosticString diagnosticString)
@@ -27,7 +28,8 @@ namespace ILLink.RoslynAnalyzer
diagnosticString.GetMessage (),
GetDiagnosticCategory (diagnosticId),
DiagnosticSeverity.Warning,
- true);
+ true,
+ customTags: WellKnownDiagnosticTags.NotConfigurable);
public static DiagnosticDescriptor GetDiagnosticDescriptor (DiagnosticId diagnosticId,
LocalizableResourceString? lrsTitle = null,
@@ -45,7 +47,8 @@ namespace ILLink.RoslynAnalyzer
diagnosticCategory ?? GetDiagnosticCategory (diagnosticId),
diagnosticSeverity,
isEnabledByDefault,
- helpLinkUri);
+ helpLinkUri,
+ customTags: WellKnownDiagnosticTags.NotConfigurable);
}
return new DiagnosticDescriptor (diagnosticId.AsString (),
@@ -54,7 +57,8 @@ namespace ILLink.RoslynAnalyzer
diagnosticCategory ?? GetDiagnosticCategory (diagnosticId),
diagnosticSeverity,
isEnabledByDefault,
- helpLinkUri);
+ helpLinkUri,
+ customTags: WellKnownDiagnosticTags.NotConfigurable);
}
static string GetDiagnosticCategory (DiagnosticId diagnosticId)