@@ -15,6 +15,9 @@ dotnet_code_quality_unused_parameters = non_public:suggestion
1515# C# files
1616[* .cs ]
1717
18+ # ### Public API analyzer
19+ dotnet_public_api_analyzer.require_api_files = true
20+
1821# ### Core EditorConfig Options ####
1922
2023# Indentation and spacing
@@ -104,14 +107,14 @@ csharp_style_var_for_built_in_types = false
104107csharp_style_var_when_type_is_apparent = false
105108
106109# Expression-bodied members
107- csharp_style_expression_bodied_accessors = true
108- csharp_style_expression_bodied_constructors = false
109- csharp_style_expression_bodied_indexers = true
110- csharp_style_expression_bodied_lambdas = when_on_single_line
111- csharp_style_expression_bodied_local_functions = when_on_single_line
112- csharp_style_expression_bodied_methods = false
113- csharp_style_expression_bodied_operators = false
114- csharp_style_expression_bodied_properties = true
110+ csharp_style_expression_bodied_accessors = true : silent
111+ csharp_style_expression_bodied_constructors = false : silent
112+ csharp_style_expression_bodied_indexers = true : silent
113+ csharp_style_expression_bodied_lambdas = when_on_single_line:silent
114+ csharp_style_expression_bodied_local_functions = when_on_single_line:silent
115+ csharp_style_expression_bodied_methods = false : silent
116+ csharp_style_expression_bodied_operators = false : silent
117+ csharp_style_expression_bodied_properties = true : silent
115118
116119# Pattern matching preferences
117120csharp_style_pattern_matching_over_as_with_null_check = true
@@ -132,13 +135,13 @@ csharp_style_prefer_readonly_struct = true
132135csharp_style_prefer_readonly_struct_member = true
133136
134137# Code-block preferences
135- csharp_prefer_braces = true
136- csharp_prefer_simple_using_statement = false
137- csharp_prefer_system_threading_lock = true
138- csharp_style_namespace_declarations = file_scoped
139- csharp_style_prefer_method_group_conversion = false
140- csharp_style_prefer_primary_constructors = true
141- csharp_style_prefer_top_level_statements = false
138+ csharp_prefer_braces = true : silent
139+ csharp_prefer_simple_using_statement = false : suggestion
140+ csharp_prefer_system_threading_lock = true : suggestion
141+ csharp_style_namespace_declarations = file_scoped:silent
142+ csharp_style_prefer_method_group_conversion = false : silent
143+ csharp_style_prefer_primary_constructors = true : suggestion
144+ csharp_style_prefer_top_level_statements = false : silent
142145
143146# Expression-level preferences
144147csharp_prefer_simple_default_expression = true
@@ -158,7 +161,7 @@ csharp_style_unused_value_assignment_preference = discard_variable
158161csharp_style_unused_value_expression_statement_preference = discard_variable
159162
160163# 'using' directive preferences
161- csharp_using_directive_placement = inside_namespace
164+ csharp_using_directive_placement = inside_namespace:silent
162165
163166# New line preferences
164167csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = false
0 commit comments