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