Skip to content

Commit 6e68aa4

Browse files
Update editorconfig
1 parent d0f4284 commit 6e68aa4

File tree

1 file changed

+43
-18
lines changed

1 file changed

+43
-18
lines changed

.editorconfig

Lines changed: 43 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
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

77
root = 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+
1023
csharp_indent_block_contents = true
1124
csharp_indent_braces = false
1225
csharp_indent_case_contents = true
@@ -23,16 +36,16 @@ csharp_new_line_between_query_expression_clauses = true
2336

2437
csharp_prefer_braces = true:error
2538
csharp_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
2842
csharp_preserve_single_line_blocks = true
29-
csharp_preserve_single_line_statements = false
43+
csharp_preserve_single_line_statements = true
3044

3145
csharp_space_after_cast = false
3246
csharp_space_after_colon_in_inheritance_clause = true
3347
csharp_space_after_comma = true
3448
csharp_space_after_dot = false
35-
3649
csharp_space_after_keywords_in_control_flow_statements = true
3750
csharp_space_after_semicolon_in_for_statement = true
3851
csharp_space_around_binary_operators = before_and_after
@@ -57,7 +70,7 @@ csharp_style_expression_bodied_accessors = true:none
5770
csharp_style_expression_bodied_constructors = false:none
5871
csharp_style_expression_bodied_indexers = true:none
5972
csharp_style_expression_bodied_lambdas = true:none
60-
csharp_style_expression_bodied_local_functions = false
73+
csharp_style_expression_bodied_local_functions = false:silent
6174
csharp_style_expression_bodied_methods = false:none
6275
csharp_style_expression_bodied_operators = false:none
6376
csharp_style_expression_bodied_properties = true:silent
@@ -72,9 +85,13 @@ csharp_style_var_for_built_in_types = true:suggestion
7285
csharp_style_var_when_type_is_apparent = true:error
7386
csharp_style_implicit_object_creation_when_type_is_apparent = false
7487
csharp_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

7693
dotnet_sort_system_directives_first = true
77-
dotnet_style_coalesce_expression = true:error
94+
dotnet_style_coalesce_expression = true:suggestion
7895
dotnet_style_collection_initializer = true:error
7996
dotnet_style_explicit_tuple_names = true:error
8097
dotnet_style_null_propagation = true:error
@@ -86,12 +103,20 @@ dotnet_style_qualification_for_event = true:error
86103
dotnet_style_qualification_for_field = true:error
87104
dotnet_style_qualification_for_method = true:error
88105
dotnet_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

96121
dotnet_naming_symbols.private_field_symbol.applicable_kinds = field
97122
dotnet_naming_symbols.private_field_symbol.applicable_accessibilities = private
@@ -111,13 +136,13 @@ dotnet_naming_symbols.parameter_symbol.applicable_kinds = parameter
111136
dotnet_naming_style.parameter_style.capitalization = camel_case
112137
dotnet_naming_rule.parameters_are_camel_case.severity = error
113138
dotnet_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

116141
dotnet_naming_symbols.non_interface_type_symbol.applicable_kinds = class,struct,enum,delegate
117142
dotnet_naming_style.non_interface_type_style.capitalization = pascal_case
118143
dotnet_naming_rule.non_interface_types_are_pascal_case.severity = error
119144
dotnet_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

122147
dotnet_naming_symbols.interface_type_symbol.applicable_kinds = interface
123148
dotnet_naming_style.interface_type_style.capitalization = pascal_case
@@ -130,11 +155,11 @@ dotnet_naming_symbols.member_symbol.applicable_kinds = method,property,event
130155
dotnet_naming_style.member_style.capitalization = pascal_case
131156
dotnet_naming_rule.members_are_pascal_case.severity = error
132157
dotnet_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

135160
dotnet_naming_rule.static_fields_should_be_pascal_case.severity = suggestion
136161
dotnet_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
138163
dotnet_naming_symbols.static_fields.applicable_kinds = field
139164
dotnet_naming_symbols.static_fields.applicable_accessibilities = *
140165
dotnet_naming_symbols.static_fields.required_modifiers = static
@@ -144,4 +169,4 @@ dotnet_naming_style.static_field_style.capitalization = pascal_case
144169
dotnet_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

Comments
 (0)