|
| 1 | +#################################################################### |
| 2 | +# Editor Configuration (Updated 2022-01-07) |
| 3 | +# |
| 4 | +# (c)2021 superdev GmbH |
| 5 | +#################################################################### |
| 6 | + |
| 7 | +root = true |
| 8 | + |
| 9 | +[*.cs] |
| 10 | +csharp_indent_block_contents = true |
| 11 | +csharp_indent_braces = false |
| 12 | +csharp_indent_case_contents = true |
| 13 | +csharp_indent_labels = one_less_than_current |
| 14 | +csharp_indent_switch_labels = true |
| 15 | + |
| 16 | +csharp_new_line_before_catch = true |
| 17 | +csharp_new_line_before_else = true |
| 18 | +csharp_new_line_before_finally = true |
| 19 | +csharp_new_line_before_members_in_anonymous_types = true |
| 20 | +csharp_new_line_before_members_in_object_initializers = true |
| 21 | +csharp_new_line_before_open_brace = all |
| 22 | +csharp_new_line_between_query_expression_clauses = true |
| 23 | + |
| 24 | +csharp_prefer_braces = true:error |
| 25 | +csharp_prefer_simple_default_expression = true:error |
| 26 | +csharp_prefer_simple_using_statement = false |
| 27 | + |
| 28 | +csharp_preserve_single_line_blocks = true |
| 29 | +csharp_preserve_single_line_statements = false |
| 30 | + |
| 31 | +csharp_space_after_cast = false |
| 32 | +csharp_space_after_colon_in_inheritance_clause = true |
| 33 | +csharp_space_after_comma = true |
| 34 | +csharp_space_after_dot = false |
| 35 | + |
| 36 | +csharp_space_after_keywords_in_control_flow_statements = true |
| 37 | +csharp_space_after_semicolon_in_for_statement = true |
| 38 | +csharp_space_around_binary_operators = before_and_after |
| 39 | +csharp_space_around_declaration_statements = do_not_ignore |
| 40 | +csharp_space_before_colon_in_inheritance_clause = true |
| 41 | +csharp_space_before_comma = false |
| 42 | +csharp_space_before_dot = false |
| 43 | +csharp_space_before_open_square_brackets = false |
| 44 | +csharp_space_before_semicolon_in_for_statement = false |
| 45 | +csharp_space_between_empty_square_brackets = false |
| 46 | +csharp_space_between_method_call_empty_parameter_list_parentheses = false |
| 47 | +csharp_space_between_method_call_name_and_opening_parenthesis = false |
| 48 | +csharp_space_between_method_call_parameter_list_parentheses = false |
| 49 | +csharp_space_between_method_declaration_empty_parameter_list_parentheses = false |
| 50 | +csharp_space_between_method_declaration_name_and_open_parenthesis = false |
| 51 | +csharp_space_between_method_declaration_parameter_list_parentheses = false |
| 52 | +csharp_space_between_parentheses = none |
| 53 | +csharp_space_between_square_brackets = false |
| 54 | + |
| 55 | +# Expression-bodied members |
| 56 | +csharp_style_expression_bodied_accessors = true:none |
| 57 | +csharp_style_expression_bodied_constructors = false:none |
| 58 | +csharp_style_expression_bodied_indexers = true:none |
| 59 | +csharp_style_expression_bodied_lambdas = true:none |
| 60 | +csharp_style_expression_bodied_local_functions = false |
| 61 | +csharp_style_expression_bodied_methods = false:none |
| 62 | +csharp_style_expression_bodied_operators = false:none |
| 63 | +csharp_style_expression_bodied_properties = true:silent |
| 64 | + |
| 65 | +csharp_style_conditional_delegate_call = true:error |
| 66 | +csharp_style_inlined_variable_declaration = true:error |
| 67 | +csharp_style_pattern_matching_over_as_with_null_check = true:error |
| 68 | +csharp_style_pattern_matching_over_is_with_cast_check = true:error |
| 69 | +csharp_style_throw_expression = true:suggestion |
| 70 | +csharp_style_var_elsewhere = true:suggestion |
| 71 | +csharp_style_var_for_built_in_types = true:suggestion |
| 72 | +csharp_style_var_when_type_is_apparent = true:error |
| 73 | +csharp_style_implicit_object_creation_when_type_is_apparent = false |
| 74 | +csharp_style_prefer_switch_expression = false |
| 75 | + |
| 76 | +dotnet_sort_system_directives_first = true |
| 77 | +dotnet_style_coalesce_expression = true:error |
| 78 | +dotnet_style_collection_initializer = true:error |
| 79 | +dotnet_style_explicit_tuple_names = true:error |
| 80 | +dotnet_style_null_propagation = true:error |
| 81 | +dotnet_style_object_initializer = true:none |
| 82 | +dotnet_style_predefined_type_for_locals_parameters_members = true:error |
| 83 | +dotnet_style_predefined_type_for_member_access = true:error |
| 84 | + |
| 85 | +dotnet_style_qualification_for_event = true:error |
| 86 | +dotnet_style_qualification_for_field = true:error |
| 87 | +dotnet_style_qualification_for_method = true:error |
| 88 | +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 |
| 95 | + |
| 96 | +dotnet_naming_symbols.private_field_symbol.applicable_kinds = field |
| 97 | +dotnet_naming_symbols.private_field_symbol.applicable_accessibilities = private |
| 98 | +dotnet_naming_style.private_field_style.capitalization = camel_case |
| 99 | +dotnet_naming_rule.private_fields_are_camel_case.severity = error |
| 100 | +dotnet_naming_rule.private_fields_are_camel_case.symbols = private_field_symbol |
| 101 | +dotnet_naming_rule.private_fields_are_camel_case.style = private_field_style |
| 102 | + |
| 103 | +dotnet_naming_symbols.non_private_field_symbol.applicable_kinds = field |
| 104 | +dotnet_naming_symbols.non_private_field_symbol.applicable_accessibilities = public,internal,friend,protected,protected_internal,protected_friend |
| 105 | +dotnet_naming_style.non_private_field_style.capitalization = pascal_case |
| 106 | +dotnet_naming_rule.non_private_fields_are_pascal_case.severity = error |
| 107 | +dotnet_naming_rule.non_private_fields_are_pascal_case.symbols = non_private_field_symbol |
| 108 | +dotnet_naming_rule.non_private_fields_are_pascal_case.style = non_private_field_style |
| 109 | + |
| 110 | +dotnet_naming_symbols.parameter_symbol.applicable_kinds = parameter |
| 111 | +dotnet_naming_style.parameter_style.capitalization = camel_case |
| 112 | +dotnet_naming_rule.parameters_are_camel_case.severity = error |
| 113 | +dotnet_naming_rule.parameters_are_camel_case.symbols = parameter_symbol |
| 114 | +dotnet_naming_rule.parameters_are_camel_case.style = parameter_style |
| 115 | + |
| 116 | +dotnet_naming_symbols.non_interface_type_symbol.applicable_kinds = class,struct,enum,delegate |
| 117 | +dotnet_naming_style.non_interface_type_style.capitalization = pascal_case |
| 118 | +dotnet_naming_rule.non_interface_types_are_pascal_case.severity = error |
| 119 | +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 |
| 121 | + |
| 122 | +dotnet_naming_symbols.interface_type_symbol.applicable_kinds = interface |
| 123 | +dotnet_naming_style.interface_type_style.capitalization = pascal_case |
| 124 | +dotnet_naming_style.interface_type_style.required_prefix = I |
| 125 | +dotnet_naming_rule.interface_types_must_be_prefixed_with_I.severity = error |
| 126 | +dotnet_naming_rule.interface_types_must_be_prefixed_with_I.symbols = interface_type_symbol |
| 127 | +dotnet_naming_rule.interface_types_must_be_prefixed_with_I.style = interface_type_style |
| 128 | + |
| 129 | +dotnet_naming_symbols.member_symbol.applicable_kinds = method,property,event |
| 130 | +dotnet_naming_style.member_style.capitalization = pascal_case |
| 131 | +dotnet_naming_rule.members_are_pascal_case.severity = error |
| 132 | +dotnet_naming_rule.members_are_pascal_case.symbols = member_symbol |
| 133 | +dotnet_naming_rule.members_are_pascal_case.style = member_style |
| 134 | + |
| 135 | +dotnet_naming_rule.static_fields_should_be_pascal_case.severity = suggestion |
| 136 | +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 |
| 138 | +dotnet_naming_symbols.static_fields.applicable_kinds = field |
| 139 | +dotnet_naming_symbols.static_fields.applicable_accessibilities = * |
| 140 | +dotnet_naming_symbols.static_fields.required_modifiers = static |
| 141 | +dotnet_naming_style.static_field_style.capitalization = pascal_case |
| 142 | + |
| 143 | +# CS4014: Because this call is not awaited, execution of the current method continues before the call is completed |
| 144 | +dotnet_diagnostic.CS4014.severity = error |
| 145 | + |
| 146 | +# IDE0051: Remove unused private members |
| 147 | +dotnet_diagnostic.IDE0051.severity = warning |
0 commit comments