@@ -43,6 +43,19 @@ dotnet_diagnostic.CA2009.severity=error
4343dotnet_diagnostic.CA2008.severity =error
4444dotnet_diagnostic.CA2007.severity =warning
4545dotnet_diagnostic.CA2000.severity =suggestion
46+ dotnet_style_coalesce_expression = true :suggestion
47+ dotnet_style_null_propagation = true :suggestion
48+ dotnet_style_prefer_is_null_check_over_reference_equality_method = true :suggestion
49+ dotnet_style_prefer_auto_properties = true :silent
50+ dotnet_style_object_initializer = true :suggestion
51+ dotnet_style_collection_initializer = true :suggestion
52+ dotnet_style_prefer_simplified_boolean_expressions = true :suggestion
53+ dotnet_style_prefer_conditional_expression_over_assignment = true :silent
54+ dotnet_style_prefer_conditional_expression_over_return = true :silent
55+ dotnet_style_operator_placement_when_wrapping = beginning_of_line
56+ tab_width = 4
57+ end_of_line = crlf
58+ dotnet_style_explicit_tuple_names = true :suggestion
4659
4760[project.json ]
4861indent_size = 2
@@ -66,7 +79,7 @@ csharp_indent_braces = false
6679csharp_indent_case_contents = true
6780csharp_indent_case_contents_when_block = true
6881csharp_indent_switch_labels = true
69- csharp_indent_labels = one_less_than_current
82+ csharp_indent_labels = no_change
7083
7184# Modifier preferences
7285csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
@@ -117,13 +130,13 @@ dotnet_naming_style.camel_case_underscore_style.required_prefix = _
117130dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case
118131
119132# Code style defaults
120- csharp_using_directive_placement = outside_namespace:suggestion
133+ csharp_using_directive_placement = outside_namespace:silent
121134dotnet_sort_system_directives_first = true
122135csharp_prefer_braces = true :silent
123136csharp_preserve_single_line_blocks = true :none
124137csharp_preserve_single_line_statements = false :none
125138csharp_prefer_static_local_function = true :suggestion
126- csharp_prefer_simple_using_statement = false : none
139+ csharp_prefer_simple_using_statement = true : suggestion
127140csharp_style_prefer_switch_expression = true :suggestion
128141csharp_style_namespace_declarations = block_scoped:silent
129142csharp_style_prefer_method_group_conversion = true :silent
@@ -155,14 +168,14 @@ dotnet_style_prefer_simplified_interpolation = true:suggestion
155168dotnet_style_namespace_match_folder = true :suggestion
156169
157170# Expression-bodied members
158- csharp_style_expression_bodied_methods = true : suggestion
159- csharp_style_expression_bodied_constructors = true : suggestion
160- csharp_style_expression_bodied_operators = true : suggestion
161- csharp_style_expression_bodied_properties = true :suggestion
162- csharp_style_expression_bodied_indexers = true :suggestion
163- csharp_style_expression_bodied_accessors = true :suggestion
164- csharp_style_expression_bodied_lambdas = true :suggestion
165- csharp_style_expression_bodied_local_functions = true : suggestion
171+ csharp_style_expression_bodied_methods = false : silent
172+ csharp_style_expression_bodied_constructors = false : silent
173+ csharp_style_expression_bodied_operators = false : silent
174+ csharp_style_expression_bodied_properties = true :silent
175+ csharp_style_expression_bodied_indexers = true :silent
176+ csharp_style_expression_bodied_accessors = true :silent
177+ csharp_style_expression_bodied_lambdas = true :silent
178+ csharp_style_expression_bodied_local_functions = false : silent
166179
167180# Pattern matching
168181csharp_style_pattern_matching_over_is_with_cast_check = true :suggestion
@@ -519,6 +532,7 @@ dotnet_diagnostic.RCS1195.severity=error
519532dotnet_diagnostic.RCS1214.severity =error
520533
521534dotnet_diagnostic.IDE1006.severity =none
535+ csharp_prefer_system_threading_lock = true :suggestion
522536
523537# C++ Files
524538[* .{cpp,h,in} ]
0 commit comments