From de0f8a7bc2ccf1bed783e654010f196b5f6ad93c Mon Sep 17 00:00:00 2001 From: Jeremy Sinclair <4016293+snickler@users.noreply.github.com> Date: Fri, 22 Sep 2023 19:56:43 -0400 Subject: [PATCH] [Analyzers] Disable CA1854 --- src/.editorconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/.editorconfig b/src/.editorconfig index 4a038582a2..683d265382 100644 --- a/src/.editorconfig +++ b/src/.editorconfig @@ -113,6 +113,9 @@ dotnet_diagnostic.CA1309.severity = suggestion # CS1615: Argument may not be passed with the ref keyword dotnet_diagnostic.CS1615.severity = none +# CA1854: Prefer a 'TryGetValue' call over a Dictionary indexer access guarded by a 'ContainsKey' check to avoid double lookup +dotnet_diagnostic.CS1854.severity = suggestion + # CA1860: Avoid using 'Enumerable.Any()' extension method dotnet_diagnostic.CA1860.severity = suggestion @@ -138,4 +141,4 @@ dotnet_diagnostic.CA1869.severity = none dotnet_diagnostic.CA2208.severity = none # CS9191: The 'ref' modifier for argument corresponding to 'in' is equivalent to 'in'. Consider using 'in' instead. -dotnet_diagnostic.CS9191.severity = none \ No newline at end of file +dotnet_diagnostic.CS9191.severity = none