@@ -17,17 +17,6 @@ indent_style = space
17
17
# New line preferences
18
18
end_of_line = unset
19
19
insert_final_newline = false
20
- dotnet_style_prefer_is_null_check_over_reference_equality_method = true :warning
21
- dotnet_style_readonly_field = true :warning
22
- dotnet_style_predefined_type_for_locals_parameters_members = true :warning
23
- dotnet_style_predefined_type_for_member_access = true :warning
24
- dotnet_style_require_accessibility_modifiers = for_non_interface_members:warning
25
- dotnet_style_allow_statement_immediately_after_block_experimental = false :warning
26
- dotnet_style_allow_multiple_blank_lines_experimental = false :warning
27
- dotnet_style_qualification_for_field = true :warning
28
- dotnet_style_qualification_for_property = false :warning
29
- dotnet_style_qualification_for_method = false :warning
30
- dotnet_style_qualification_for_event = false :warning
31
20
32
21
# ### Build files ####
33
22
@@ -58,14 +47,14 @@ insert_final_newline = true
58
47
# ### .NET Coding Conventions ####
59
48
60
49
# this. and Me. preferences
61
- dotnet_style_qualification_for_event = true : silent
62
- dotnet_style_qualification_for_field = true :silent
63
- dotnet_style_qualification_for_method = true : silent
64
- dotnet_style_qualification_for_property = true : silent
50
+ dotnet_style_qualification_for_event = false : warning
51
+ dotnet_style_qualification_for_field = true :warning
52
+ dotnet_style_qualification_for_method = false : warning
53
+ dotnet_style_qualification_for_property = false : warning
65
54
66
55
# Language keywords vs BCL types preferences
67
- dotnet_style_predefined_type_for_locals_parameters_members = true :silent
68
- dotnet_style_predefined_type_for_member_access = true :silent
56
+ dotnet_style_predefined_type_for_locals_parameters_members = true :warning
57
+ dotnet_style_predefined_type_for_member_access = true :warning
69
58
70
59
# Parentheses preferences
71
60
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
@@ -74,7 +63,11 @@ dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
74
63
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
75
64
76
65
# Modifier preferences
77
- dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
66
+ dotnet_style_require_accessibility_modifiers = for_non_interface_members:warning
67
+
68
+ # Code block preferences
69
+ dotnet_style_allow_multiple_blank_lines_experimental = false :warning
70
+ dotnet_style_allow_statement_immediately_after_block_experimental = false :warning
78
71
79
72
# Expression-level preferences
80
73
csharp_style_deconstructed_variable_declaration = true :suggestion
@@ -90,10 +83,10 @@ dotnet_style_prefer_conditional_expression_over_assignment = true:silent
90
83
dotnet_style_prefer_conditional_expression_over_return = true :silent
91
84
dotnet_style_prefer_inferred_anonymous_type_member_names = true :suggestion
92
85
dotnet_style_prefer_inferred_tuple_names = true :suggestion
93
- dotnet_style_prefer_is_null_check_over_reference_equality_method = true :suggestion
86
+ dotnet_style_prefer_is_null_check_over_reference_equality_method = true :warning
94
87
95
88
# Field preferences
96
- dotnet_style_readonly_field = true :suggestion
89
+ dotnet_style_readonly_field = true :warning
97
90
98
91
# ### C# Coding Conventions ####
99
92
@@ -112,6 +105,7 @@ csharp_style_expression_bodied_operators = false:silent
112
105
csharp_style_expression_bodied_properties = false :silent
113
106
114
107
# Pattern matching preferences
108
+ csharp_style_prefer_pattern_matching = true :suggestion
115
109
csharp_style_pattern_matching_over_as_with_null_check = true :suggestion
116
110
csharp_style_pattern_matching_over_is_with_cast_check = true :suggestion
117
111
@@ -123,9 +117,15 @@ csharp_preferred_modifier_order = public,private,protected,internal,static,exter
123
117
124
118
# Code-block preferences
125
119
csharp_prefer_braces = true :suggestion
120
+ csharp_using_directive_placement = outside_namespace:warning
121
+ csharp_style_namespace_declarations = file_scoped:warning
122
+ csharp_style_unused_value_assignment_preference = discard_variable:warning
123
+ csharp_style_unused_value_expression_statement_preference = discard_variable:warning
124
+ csharp_style_allow_blank_lines_between_consecutive_braces_experimental = false :warning
126
125
127
126
# Expression-level preferences
128
127
csharp_prefer_simple_default_expression = true :suggestion
128
+ csharp_prefer_static_local_function = true :warning
129
129
csharp_style_pattern_local_over_anonymous_function = true :warning
130
130
131
131
# ### C# Formatting Rules ####
@@ -381,10 +381,3 @@ dotnet_diagnostic.SA1629.severity = none
381
381
dotnet_diagnostic.SA1633.severity = none
382
382
dotnet_diagnostic.SA1634.severity = none
383
383
dotnet_diagnostic.SA1652.severity = none
384
- csharp_using_directive_placement = outside_namespace:warning
385
- csharp_style_unused_value_assignment_preference = discard_variable:warning
386
- csharp_style_unused_value_expression_statement_preference = discard_variable:warning
387
- csharp_prefer_static_local_function = true :warning
388
- csharp_style_allow_blank_lines_between_consecutive_braces_experimental = false :warning
389
- csharp_style_prefer_pattern_matching = true :suggestion
390
- csharp_style_namespace_declarations = file_scoped:warning
0 commit comments