@@ -91,12 +91,12 @@ csharp_style_expression_bodied_operators = false:silent
9191csharp_style_expression_bodied_properties = true :silent
9292
9393# Pattern matching preferences
94- csharp_style_pattern_matching_over_as_with_null_check = true
95- csharp_style_pattern_matching_over_is_with_cast_check = true
96- csharp_style_prefer_extended_property_pattern = true
97- csharp_style_prefer_not_pattern = true
98- csharp_style_prefer_pattern_matching = true
99- csharp_style_prefer_switch_expression = true
94+ csharp_style_pattern_matching_over_as_with_null_check = true : suggestion
95+ csharp_style_pattern_matching_over_is_with_cast_check = true : suggestion
96+ csharp_style_prefer_extended_property_pattern = true : suggestion
97+ csharp_style_prefer_not_pattern = true : suggestion
98+ csharp_style_prefer_pattern_matching = true : silent
99+ csharp_style_prefer_switch_expression = true : suggestion
100100
101101# Null-checking preferences
102102csharp_style_conditional_delegate_call = true
@@ -274,6 +274,8 @@ dotnet_diagnostic.SA1108.severity = silent
274274dotnet_diagnostic.SA1012.severity = error
275275dotnet_diagnostic.SA1500.severity = error
276276dotnet_diagnostic.SA1316.severity = error
277+ csharp_prefer_system_threading_lock = true :suggestion
278+ dotnet_diagnostic.MA0132.severity = error
277279
278280[* .{cs,vb} ]
279281dotnet_style_operator_placement_when_wrapping = beginning_of_line
@@ -297,4 +299,5 @@ dotnet_style_predefined_type_for_locals_parameters_members = true:silent
297299dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
298300dotnet_code_quality_unused_parameters = all:suggestion
299301dotnet_diagnostic.CA2200.severity = error
300- dotnet_diagnostic.CA1012.severity = error
302+ dotnet_diagnostic.CA1012.severity = error
303+ dotnet_style_namespace_match_folder = true :suggestion
0 commit comments