From aa88b4ec9c4242f4a343964173af4aa8f5e5e2a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrej=20=C4=8Ci=C5=BEm=C3=A1rik?= Date: Fri, 3 Feb 2023 12:48:29 +0100 Subject: [PATCH] Fixed false-positive warning See: https://github.com/dotnet/roslyn-analyzers/issues/5828 for more info --- .../Analyzers/ApiUsage/UnsupportedCallSiteAttributeAnalyzer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Analyzers/Analyzers/ApiUsage/UnsupportedCallSiteAttributeAnalyzer.cs b/src/Analyzers/Analyzers/ApiUsage/UnsupportedCallSiteAttributeAnalyzer.cs index 3ba6fb3376..eb9c81c81b 100644 --- a/src/Analyzers/Analyzers/ApiUsage/UnsupportedCallSiteAttributeAnalyzer.cs +++ b/src/Analyzers/Analyzers/ApiUsage/UnsupportedCallSiteAttributeAnalyzer.cs @@ -15,7 +15,7 @@ public sealed class UnsupportedCallSiteAttributeAnalyzer : DiagnosticAnalyzer private const string unsupportedCallSiteAttributeMetadataName = "DotVVM.Framework.CodeAnalysis.UnsupportedCallSiteAttribute"; private const int callSiteTypeServerUnderlyingValue = 0; - public static DiagnosticDescriptor DoNotInvokeMethodFromUnsupportedCallSite = new( + public static DiagnosticDescriptor DoNotInvokeMethodFromUnsupportedCallSite = new DiagnosticDescriptor( DotvvmDiagnosticIds.DoNotInvokeMethodFromUnsupportedCallSiteRuleId, unsupportedCallSiteTitle, unsupportedCallSiteMessage,