11# ###################################################################
2- # Editor Configuration (Updated 2022-01-07 )
2+ # Editor Configuration (Updated 2023-07-26 )
33#
4- # (c)2021 superdev GmbH
4+ # (c)2023 superdev GmbH
55# ###################################################################
66
77root = true
88
9+ [* .csproj ]
10+ indent_style = space
11+ indent_size = 2
12+ tab_width = 2
13+
914[* .cs ]
15+ indent_style = space
16+ indent_size = 4
17+ tab_width = 4
18+ end_of_line = crlf
19+ trim_trailing_whitespace = true
20+ insert_final_newline = false
21+ max_line_length = 140
22+
1023csharp_indent_block_contents = true
1124csharp_indent_braces = false
1225csharp_indent_case_contents = true
@@ -23,16 +36,16 @@ csharp_new_line_between_query_expression_clauses = true
2336
2437csharp_prefer_braces = true :error
2538csharp_prefer_simple_default_expression = true :error
26- csharp_prefer_simple_using_statement = false
39+ csharp_prefer_simple_using_statement = false : silent
2740
41+ csharp_using_directive_placement = outside_namespace:silent
2842csharp_preserve_single_line_blocks = true
29- csharp_preserve_single_line_statements = false
43+ csharp_preserve_single_line_statements = true
3044
3145csharp_space_after_cast = false
3246csharp_space_after_colon_in_inheritance_clause = true
3347csharp_space_after_comma = true
3448csharp_space_after_dot = false
35-
3649csharp_space_after_keywords_in_control_flow_statements = true
3750csharp_space_after_semicolon_in_for_statement = true
3851csharp_space_around_binary_operators = before_and_after
@@ -57,7 +70,7 @@ csharp_style_expression_bodied_accessors = true:none
5770csharp_style_expression_bodied_constructors = false :none
5871csharp_style_expression_bodied_indexers = true :none
5972csharp_style_expression_bodied_lambdas = true :none
60- csharp_style_expression_bodied_local_functions = false
73+ csharp_style_expression_bodied_local_functions = false : silent
6174csharp_style_expression_bodied_methods = false :none
6275csharp_style_expression_bodied_operators = false :none
6376csharp_style_expression_bodied_properties = true :silent
@@ -72,9 +85,13 @@ csharp_style_var_for_built_in_types = true:suggestion
7285csharp_style_var_when_type_is_apparent = true :error
7386csharp_style_implicit_object_creation_when_type_is_apparent = false
7487csharp_style_prefer_switch_expression = false
88+ csharp_style_namespace_declarations = block_scoped:silent
89+ csharp_style_prefer_method_group_conversion = true :silent
90+ csharp_style_prefer_top_level_statements = true :silent
91+ csharp_style_prefer_null_check_over_type_check = true :suggestion
7592
7693dotnet_sort_system_directives_first = true
77- dotnet_style_coalesce_expression = true :error
94+ dotnet_style_coalesce_expression = true :suggestion
7895dotnet_style_collection_initializer = true :error
7996dotnet_style_explicit_tuple_names = true :error
8097dotnet_style_null_propagation = true :error
@@ -86,12 +103,20 @@ dotnet_style_qualification_for_event = true:error
86103dotnet_style_qualification_for_field = true :error
87104dotnet_style_qualification_for_method = true :error
88105dotnet_style_qualification_for_property = true :error
89-
90- end_of_line = crlf
91- indent_size = 4
92- indent_style = space
93- insert_final_newline = false
94- tab_width = 4
106+ dotnet_style_prefer_is_null_check_over_reference_equality_method = true :suggestion
107+ dotnet_style_prefer_auto_properties = true :silent
108+ dotnet_style_prefer_simplified_boolean_expressions = false :suggestion
109+ dotnet_style_prefer_conditional_expression_over_assignment = false :suggestion
110+ dotnet_style_prefer_conditional_expression_over_return = false :suggestion
111+ dotnet_style_prefer_inferred_tuple_names = true :suggestion
112+ dotnet_style_prefer_inferred_anonymous_type_member_names = true :suggestion
113+ dotnet_style_prefer_compound_assignment = true :suggestion
114+ dotnet_style_prefer_simplified_interpolation = true :suggestion
115+ dotnet_style_namespace_match_folder = true :suggestion
116+ dotnet_style_operator_placement_when_wrapping = beginning_of_line
117+ csharp_style_unused_value_expression_statement_preference = discard_variable:none
118+ csharp_style_unused_value_assignment_preference = discard_variable:none
119+ csharp_style_prefer_method_group_conversion = true
95120
96121dotnet_naming_symbols.private_field_symbol.applicable_kinds = field
97122dotnet_naming_symbols.private_field_symbol.applicable_accessibilities = private
@@ -111,13 +136,13 @@ dotnet_naming_symbols.parameter_symbol.applicable_kinds = parameter
111136dotnet_naming_style.parameter_style.capitalization = camel_case
112137dotnet_naming_rule.parameters_are_camel_case.severity = error
113138dotnet_naming_rule.parameters_are_camel_case.symbols = parameter_symbol
114- dotnet_naming_rule.parameters_are_camel_case.style = parameter_style
139+ dotnet_naming_rule.parameters_are_camel_case.style = private_field_style
115140
116141dotnet_naming_symbols.non_interface_type_symbol.applicable_kinds = class,struct,enum,delegate
117142dotnet_naming_style.non_interface_type_style.capitalization = pascal_case
118143dotnet_naming_rule.non_interface_types_are_pascal_case.severity = error
119144dotnet_naming_rule.non_interface_types_are_pascal_case.symbols = non_interface_type_symbol
120- dotnet_naming_rule.non_interface_types_are_pascal_case.style = non_interface_type_style
145+ dotnet_naming_rule.non_interface_types_are_pascal_case.style = non_private_field_style
121146
122147dotnet_naming_symbols.interface_type_symbol.applicable_kinds = interface
123148dotnet_naming_style.interface_type_style.capitalization = pascal_case
@@ -130,11 +155,11 @@ dotnet_naming_symbols.member_symbol.applicable_kinds = method,property,event
130155dotnet_naming_style.member_style.capitalization = pascal_case
131156dotnet_naming_rule.members_are_pascal_case.severity = error
132157dotnet_naming_rule.members_are_pascal_case.symbols = member_symbol
133- dotnet_naming_rule.members_are_pascal_case.style = member_style
158+ dotnet_naming_rule.members_are_pascal_case.style = non_private_field_style
134159
135160dotnet_naming_rule.static_fields_should_be_pascal_case.severity = suggestion
136161dotnet_naming_rule.static_fields_should_be_pascal_case.symbols = static_fields
137- dotnet_naming_rule.static_fields_should_be_pascal_case.style = static_field_style
162+ dotnet_naming_rule.static_fields_should_be_pascal_case.style = non_private_field_style
138163dotnet_naming_symbols.static_fields.applicable_kinds = field
139164dotnet_naming_symbols.static_fields.applicable_accessibilities = *
140165dotnet_naming_symbols.static_fields.required_modifiers = static
@@ -144,4 +169,4 @@ dotnet_naming_style.static_field_style.capitalization = pascal_case
144169dotnet_diagnostic.CS4014.severity = error
145170
146171# IDE0051: Remove unused private members
147- dotnet_diagnostic.IDE0051.severity = warning
172+ dotnet_diagnostic.IDE0051.severity = warning
0 commit comments