@@ -51,8 +51,8 @@ dotnet_style_readonly_field = true:suggestion
51
51
dotnet_style_object_initializer = true :suggestion
52
52
dotnet_style_collection_initializer = true :suggestion
53
53
dotnet_style_explicit_tuple_names = true :suggestion
54
- dotnet_style_null_propagation =true :error
55
- dotnet_style_coalesce_expression =true :error
54
+ dotnet_style_null_propagation = true :error
55
+ dotnet_style_coalesce_expression = true :error
56
56
dotnet_style_prefer_is_null_check_over_reference_equality_method = true :silent
57
57
dotnet_style_prefer_inferred_tuple_names = true :suggestion
58
58
dotnet_style_prefer_inferred_anonymous_type_member_names = true :suggestion
@@ -67,7 +67,7 @@ dotnet_naming_style.pascal_case_style.capitalization = pascal_case
67
67
# Use PascalCase for constant fields
68
68
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
69
69
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
70
- dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
70
+ dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
71
71
dotnet_naming_symbols.constant_fields.applicable_kinds = field
72
72
dotnet_naming_symbols.constant_fields.applicable_accessibilities = *
73
73
dotnet_naming_symbols.constant_fields.required_modifiers = const
@@ -76,6 +76,10 @@ dotnet_diagnostic.CA1823.severity=error
76
76
dotnet_diagnostic.CA1836.severity =error
77
77
dotnet_style_namespace_match_folder =true :error
78
78
dotnet_style_allow_multiple_blank_lines_experimental =true :error
79
+ dotnet_style_prefer_simplified_boolean_expressions = true :suggestion
80
+ dotnet_style_operator_placement_when_wrapping = beginning_of_line
81
+ tab_width = 4
82
+ dotnet_diagnostic.VSTHRD111.severity = error
79
83
# ##############################
80
84
# C# Coding Conventions #
81
85
# ##############################
@@ -100,7 +104,7 @@ csharp_style_conditional_delegate_call = true:suggestion
100
104
# Modifier preferences
101
105
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
102
106
# Expression-level preferences
103
- csharp_prefer_braces =true :error
107
+ csharp_prefer_braces = true :error
104
108
csharp_style_deconstructed_variable_declaration = true :suggestion
105
109
csharp_prefer_simple_default_expression = true :suggestion
106
110
csharp_style_pattern_local_over_anonymous_function = true :suggestion
@@ -154,7 +158,7 @@ dotnet_diagnostic.VSTHRD200.severity = error
154
158
dotnet_diagnostic.MA0048.severity = error
155
159
156
160
# MA0004: Use Task.ConfigureAwait(false)
157
- dotnet_diagnostic.MA0004.severity = error
161
+ dotnet_diagnostic.MA0004.severity = none
158
162
159
163
# CS8618: Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
160
164
dotnet_diagnostic.CS8618.severity = error
@@ -170,8 +174,13 @@ dotnet_diagnostic.MA0044.severity=error
170
174
171
175
# VSTHRD001: Avoid legacy thread switching APIs
172
176
dotnet_diagnostic.VSTHRD001.severity = none
173
- csharp_style_namespace_declarations =file_scoped:error
177
+ csharp_style_namespace_declarations = file_scoped:error
174
178
csharp_style_unused_value_assignment_preference =discard_variable:error
179
+ csharp_using_directive_placement = outside_namespace:silent
180
+ csharp_prefer_simple_using_statement = true :suggestion
181
+ csharp_style_prefer_method_group_conversion = true :silent
182
+ csharp_style_expression_bodied_lambdas = true :silent
183
+ csharp_style_expression_bodied_local_functions = false :silent
175
184
176
185
[* .vb ]
177
186
# Modifier preferences
0 commit comments