Skip to content

Commit 5feaa7a

Browse files
committed
Disable 'IDE0305' code style rule
1 parent bc5fc07 commit 5feaa7a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ dotnet_style_prefer_inferred_tuple_names = true:warning
9595
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning
9696
csharp_style_implicit_object_creation_when_type_is_apparent = true:warning
9797

98+
# Disable 'Use collection expression for fluent (IDE0305)'. The rationale is that it's that collection
99+
# expressions can be hard to read when having sequences of multiple chained fluent invocations (eg. LINQ).
100+
# See: https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0305.
101+
dotnet_style_prefer_collection_expression = false
102+
98103
# Field preferences
99104
dotnet_style_readonly_field = true:warning
100105

0 commit comments

Comments
 (0)