From bc0554cb84f9f16731c3f4b4d25f7c2d0fccfb6f Mon Sep 17 00:00:00 2001 From: martintmk Date: Mon, 24 Apr 2023 11:38:35 +0200 Subject: [PATCH] Turn on CA1852 --- eng/analyzers/Library.globalconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/analyzers/Library.globalconfig b/eng/analyzers/Library.globalconfig index 6b30dc09343..2a816df636d 100644 --- a/eng/analyzers/Library.globalconfig +++ b/eng/analyzers/Library.globalconfig @@ -940,7 +940,7 @@ dotnet_diagnostic.CA1851.severity = suggestion # Category : Performance # Help Link: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1852 # Tags : Telemetry, EnabledRuleInAggressiveMode, CompilationEnd -dotnet_diagnostic.CA1852.severity = none +dotnet_diagnostic.CA1852.severity = warning # Title : Unnecessary call to 'Dictionary.ContainsKey(key)' # Category : Performance