@@ -15,8 +15,25 @@ indent_size = 4
1515indent_style = space
1616
1717# New line preferences
18- end_of_line = unset
18+ end_of_line = crlf
1919insert_final_newline = false
20+ dotnet_style_operator_placement_when_wrapping = beginning_of_line
21+ dotnet_style_coalesce_expression = true :suggestion
22+ dotnet_style_null_propagation = true :suggestion
23+ dotnet_style_prefer_is_null_check_over_reference_equality_method = true :suggestion
24+ dotnet_style_prefer_auto_properties = true :silent
25+ dotnet_style_object_initializer = true :suggestion
26+ dotnet_style_collection_initializer = true :suggestion
27+ dotnet_style_prefer_simplified_boolean_expressions = true :suggestion
28+ dotnet_style_prefer_conditional_expression_over_assignment = true :silent
29+ dotnet_style_prefer_conditional_expression_over_return = true :silent
30+ dotnet_style_explicit_tuple_names = true :suggestion
31+ dotnet_style_prefer_inferred_tuple_names = true :suggestion
32+ dotnet_style_prefer_inferred_anonymous_type_member_names = true :suggestion
33+ dotnet_style_prefer_compound_assignment = true :suggestion
34+ dotnet_style_prefer_simplified_interpolation = true :suggestion
35+ dotnet_style_prefer_collection_expression = when_types_loosely_match:suggestion
36+ dotnet_style_namespace_match_folder = true :suggestion
2037
2138# ### Build files ####
2239
@@ -50,10 +67,10 @@ file_header_template = This Source Code Form is subject to the terms of the MIT
5067# ### .NET Coding Conventions ####
5168
5269# this. and Me. preferences
53- dotnet_style_qualification_for_event = false :warning
54- dotnet_style_qualification_for_field = true : warning
55- dotnet_style_qualification_for_method = false :warning
56- dotnet_style_qualification_for_property = false :warning
70+ dotnet_style_qualification_for_event = false :none
71+ dotnet_style_qualification_for_field = false : none
72+ dotnet_style_qualification_for_method = false :none
73+ dotnet_style_qualification_for_property = false :none
5774
5875# Language keywords vs BCL types preferences
5976dotnet_style_predefined_type_for_locals_parameters_members = true :warning
@@ -99,13 +116,13 @@ csharp_style_var_for_built_in_types = false:warning
99116csharp_style_var_when_type_is_apparent = false :warning
100117
101118# Expression-bodied members
102- csharp_style_expression_bodied_accessors = false :silent
119+ csharp_style_expression_bodied_accessors = true :silent
103120csharp_style_expression_bodied_constructors = false :silent
104- csharp_style_expression_bodied_indexers = false :silent
121+ csharp_style_expression_bodied_indexers = true :silent
105122csharp_style_expression_bodied_lambdas = true :silent
106123csharp_style_expression_bodied_methods = false :silent
107124csharp_style_expression_bodied_operators = false :silent
108- csharp_style_expression_bodied_properties = false :silent
125+ csharp_style_expression_bodied_properties = true :silent
109126
110127# Pattern matching preferences
111128csharp_style_prefer_pattern_matching = true :suggestion
@@ -119,9 +136,9 @@ csharp_style_conditional_delegate_call = true:suggestion
119136csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async
120137
121138# Code-block preferences
122- csharp_prefer_braces = true :suggestion
123- csharp_using_directive_placement = outside_namespace:warning
124- csharp_style_namespace_declarations = file_scoped:warning
139+ csharp_prefer_braces = true :silent
140+ csharp_using_directive_placement = outside_namespace:silent
141+ csharp_style_namespace_declarations = block_scoped:silent
125142csharp_style_unused_value_assignment_preference = discard_variable:none
126143csharp_style_unused_value_expression_statement_preference = discard_variable:none
127144csharp_style_allow_blank_lines_between_consecutive_braces_experimental = false :warning
@@ -147,7 +164,7 @@ csharp_indent_block_contents = true
147164csharp_indent_braces = false
148165csharp_indent_case_contents = true
149166csharp_indent_case_contents_when_block = false
150- csharp_indent_labels = no_change
167+ csharp_indent_labels = one_less_than_current
151168csharp_indent_switch_labels = true
152169
153170# Space preferences
@@ -387,3 +404,10 @@ dotnet_diagnostic.SA1629.severity = none
387404dotnet_diagnostic.SA1633.severity = none
388405dotnet_diagnostic.SA1634.severity = none
389406dotnet_diagnostic.SA1652.severity = none
407+ csharp_prefer_simple_using_statement = true :suggestion
408+ csharp_style_prefer_method_group_conversion = true :silent
409+ csharp_style_prefer_top_level_statements = true :silent
410+ csharp_style_prefer_primary_constructors = true :suggestion
411+ csharp_prefer_system_threading_lock = true :suggestion
412+ csharp_style_expression_bodied_local_functions = false :silent
413+ csharp_style_prefer_null_check_over_type_check = true :suggestion
0 commit comments