|
| 1 | +[*] |
| 2 | + |
| 3 | +charset = utf-8-bom |
| 4 | +insert_final_newline = true |
| 5 | +trim_trailing_whitespace = false |
| 6 | + |
| 7 | +[*.cs] |
| 8 | + |
| 9 | +end_of_line = crlf |
| 10 | +indent_style = tab |
| 11 | + |
| 12 | +csharp_style_conditional_delegate_call = true : warning |
| 13 | +csharp_style_expression_bodied_accessors = true : warning |
| 14 | +csharp_style_expression_bodied_constructors = true : warning |
| 15 | +csharp_style_expression_bodied_indexers = true : warning |
| 16 | +csharp_style_expression_bodied_methods = true : warning |
| 17 | +csharp_style_expression_bodied_operators = true : warning |
| 18 | +csharp_style_expression_bodied_properties = true : warning |
| 19 | +csharp_style_inlined_variable_declaration = true : warning |
| 20 | +csharp_style_pattern_matching_over_as_with_null_check = true : warning |
| 21 | +csharp_style_pattern_matching_over_is_with_cast_check = true : warning |
| 22 | +csharp_style_throw_expression = true : warning |
| 23 | +csharp_style_var_elsewhere = false : warning |
| 24 | +csharp_style_var_for_built_in_types = false : warning |
| 25 | +csharp_style_var_when_type_is_apparent = false : warning |
| 26 | +csharp_new_line_before_catch = true |
| 27 | +csharp_new_line_before_else = true |
| 28 | +csharp_new_line_before_finally = true |
| 29 | +csharp_new_line_before_members_in_anonymous_types = true |
| 30 | +csharp_new_line_before_members_in_object_initializers = true |
| 31 | +csharp_new_line_before_open_brace = all |
| 32 | +csharp_new_line_between_query_expression_clauses = true |
| 33 | + |
| 34 | +csharp_prefer_braces = false : suggestion |
| 35 | +csharp_indent_block_contents = true |
| 36 | +csharp_indent_braces = false |
| 37 | +csharp_indent_case_contents = true |
| 38 | +csharp_indent_case_contents_when_block = false |
| 39 | +csharp_indent_switch_labels = true |
| 40 | +csharp_indent_labels = no_change |
| 41 | + |
| 42 | +csharp_space_after_cast = true |
| 43 | +csharp_space_after_comma = true |
| 44 | +csharp_space_after_dot = false |
| 45 | +csharp_space_after_semicolon_in_for_statement = true |
| 46 | +csharp_space_before_comma = false |
| 47 | +csharp_space_before_dot = false |
| 48 | +csharp_space_before_semicolon_in_for_statement = false |
| 49 | +csharp_space_after_keywords_in_control_flow_statements = true |
| 50 | +csharp_space_around_binary_operators = before_and_after |
| 51 | +csharp_space_between_method_declaration_empty_parameter_list_parentheses = false |
| 52 | +csharp_space_between_method_declaration_name_and_open_parenthesis = false |
| 53 | +csharp_space_between_method_declaration_parameter_list_parentheses = true |
| 54 | +csharp_space_between_method_call_name_and_opening_parenthesis = false |
| 55 | +csharp_space_between_method_call_empty_parameter_list_parentheses = false |
| 56 | +csharp_space_between_method_call_parameter_list_parentheses = true |
| 57 | +csharp_space_between_parentheses = control_flow_statements, expressions |
| 58 | +csharp_space_before_open_square_brackets = false |
| 59 | +csharp_space_between_empty_square_brackets = false |
| 60 | +csharp_space_between_square_brackets = true |
| 61 | +csharp_space_after_colon_in_inheritance_clause = true |
| 62 | +csharp_space_before_colon_in_inheritance_clause = true |
| 63 | +csharp_preserve_single_line_statements = false |
| 64 | +csharp_preserve_single_line_blocks = true |
| 65 | + |
| 66 | +dotnet_sort_system_directives_first = true |
| 67 | +dotnet_style_coalesce_expression = true : warning |
| 68 | +dotnet_style_collection_initializer = true : suggestion |
| 69 | +dotnet_style_explicit_tuple_names = true : warning |
| 70 | +dotnet_style_null_propagation = true : warning |
| 71 | +dotnet_style_object_initializer = true : suggestion |
| 72 | +dotnet_style_predefined_type_for_locals_parameters_members = true : warning |
| 73 | +dotnet_style_predefined_type_for_member_access = false : warning |
| 74 | +dotnet_style_qualification_for_event = false : warning |
| 75 | +dotnet_style_qualification_for_field = false : warning |
| 76 | +dotnet_style_qualification_for_method = false : warning |
| 77 | +dotnet_style_qualification_for_property = false : warning |
| 78 | + |
| 79 | +# IInterface |
| 80 | + |
| 81 | +dotnet_naming_rule.interface_rule.symbols = all_interfaces |
| 82 | +dotnet_naming_rule.interface_rule.style = interface_style |
| 83 | +dotnet_naming_rule.interface_rule.severity = warning |
| 84 | + |
| 85 | +dotnet_naming_symbols.all_interfaces.applicable_kinds = interface |
| 86 | +dotnet_naming_symbols.all_interfaces.applicable_accessibilities = * |
| 87 | + |
| 88 | +dotnet_naming_style.interface_style.required_prefix = I |
| 89 | +dotnet_naming_style.interface_style.capitalization = pascal_case |
| 90 | + |
| 91 | +# _privateField |
| 92 | + |
| 93 | +dotnet_naming_rule.private_field_rule.symbols = private_fields |
| 94 | +dotnet_naming_rule.private_field_rule.style = private_field_style |
| 95 | +dotnet_naming_rule.private_field_rule.severity = warning |
| 96 | + |
| 97 | +dotnet_naming_symbols.private_fields.applicable_kinds = field |
| 98 | +dotnet_naming_symbols.private_fields.applicable_accessibilities = private |
| 99 | + |
| 100 | +dotnet_naming_style.private_field_style.required_prefix = _ |
| 101 | +dotnet_naming_style.private_field_style.capitalization = camel_case |
| 102 | + |
| 103 | +# parameters |
| 104 | + |
| 105 | +dotnet_naming_rule.parameter_rule.symbols = parameters |
| 106 | +dotnet_naming_rule.parameter_rule.style = camel_case_style |
| 107 | +dotnet_naming_rule.parameter_rule.severity = warning |
| 108 | + |
| 109 | +dotnet_naming_symbols.parameters.applicable_kinds = parameter |
| 110 | + |
| 111 | +dotnet_naming_style.camel_case_style.capitalization = camel_case |
| 112 | + |
| 113 | +# Type |
| 114 | + |
| 115 | +dotnet_naming_rule.type_rule.symbols = all_types |
| 116 | +dotnet_naming_rule.type_rule.style = pascal_case_style |
| 117 | +dotnet_naming_rule.type_rule.severity = warning |
| 118 | + |
| 119 | +dotnet_naming_symbols.all_types.applicable_kinds = class, struct, enum |
| 120 | +dotnet_naming_symbols.all_types.applicable_accessibilities = * |
| 121 | + |
| 122 | +# async Task SomeMethodAsync |
| 123 | + |
| 124 | +dotnet_naming_rule.async_method_rule.symbols = async_methods |
| 125 | +dotnet_naming_rule.async_method_rule.style = async_method_style |
| 126 | +dotnet_naming_rule.async_method_rule.severity = suggestion |
| 127 | + |
| 128 | +dotnet_naming_symbols.async_methods.applicable_kinds = method |
| 129 | +dotnet_naming_symbols.async_methods.applicable_accessibilities = * |
| 130 | +dotnet_naming_symbols.async_methods.required_modifiers = async |
| 131 | + |
| 132 | +dotnet_naming_style.async_method_style.required_suffix = Async |
| 133 | +dotnet_naming_style.async_method_style.capitalization = pascal_case |
| 134 | + |
| 135 | +# NonFieldMembers |
| 136 | + |
| 137 | +dotnet_naming_rule.member_rule.symbols = non_field_members |
| 138 | +dotnet_naming_rule.member_rule.style = pascal_case_style |
| 139 | +dotnet_naming_rule.member_rule.severity = warning |
| 140 | + |
| 141 | +dotnet_naming_symbols.non_field_members.applicable_kinds = property, method, event |
| 142 | +dotnet_naming_symbols.non_field_members.applicable_accessibilities = * |
| 143 | + |
| 144 | +dotnet_naming_style.pascal_case_style.capitalization = pascal_case |
0 commit comments