From cd43dd8dae1ff7487f9d2f9d740895bbc498ac31 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 15 Feb 2025 19:11:53 -0800 Subject: [PATCH] Disable 'IDE0305' code style rule --- .editorconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.editorconfig b/.editorconfig index bcfa1529..cdf31601 100644 --- a/.editorconfig +++ b/.editorconfig @@ -95,6 +95,11 @@ dotnet_style_prefer_inferred_tuple_names = true:warning dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning csharp_style_implicit_object_creation_when_type_is_apparent = true:warning +# Disable 'Use collection expression for fluent (IDE0305)'. The rationale is that it's that collection +# expressions can be hard to read when having sequences of multiple chained fluent invocations (eg. LINQ). +# See: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0305. +dotnet_style_prefer_collection_expression = false + # Field preferences dotnet_style_readonly_field = true:warning