|
1 | 1 | [*.cs] |
2 | 2 |
|
3 | 3 | # IDE0065: Misplaced using directive |
4 | | -csharp_using_directive_placement = outside_namespace |
| 4 | +csharp_using_directive_placement = outside_namespace:silent |
| 5 | + |
| 6 | +[*.cs] |
| 7 | +#### Naming styles #### |
| 8 | + |
| 9 | +# Naming rules |
| 10 | + |
| 11 | +dotnet_naming_rule.interface_should_be_begins_with_i.severity = error |
| 12 | +dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface |
| 13 | +dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i |
| 14 | + |
| 15 | +dotnet_naming_rule.types_should_be_pascal_case.severity = error |
| 16 | +dotnet_naming_rule.types_should_be_pascal_case.symbols = types |
| 17 | +dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case |
| 18 | + |
| 19 | +dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = error |
| 20 | +dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members |
| 21 | +dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case |
| 22 | + |
| 23 | +# Symbol specifications |
| 24 | + |
| 25 | +dotnet_naming_symbols.interface.applicable_kinds = interface |
| 26 | +dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected |
| 27 | +dotnet_naming_symbols.interface.required_modifiers = |
| 28 | + |
| 29 | +dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum |
| 30 | +dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected |
| 31 | +dotnet_naming_symbols.types.required_modifiers = |
| 32 | + |
| 33 | +dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method |
| 34 | +dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected |
| 35 | +dotnet_naming_symbols.non_field_members.required_modifiers = |
| 36 | + |
| 37 | +# Naming styles |
| 38 | + |
| 39 | +dotnet_naming_style.begins_with_i.required_prefix = I |
| 40 | +dotnet_naming_style.begins_with_i.required_suffix = |
| 41 | +dotnet_naming_style.begins_with_i.word_separator = |
| 42 | +dotnet_naming_style.begins_with_i.capitalization = pascal_case |
| 43 | + |
| 44 | +dotnet_naming_style.pascal_case.required_prefix = |
| 45 | +dotnet_naming_style.pascal_case.required_suffix = |
| 46 | +dotnet_naming_style.pascal_case.word_separator = |
| 47 | +dotnet_naming_style.pascal_case.capitalization = pascal_case |
| 48 | + |
| 49 | +dotnet_naming_style.pascal_case.required_prefix = |
| 50 | +dotnet_naming_style.pascal_case.required_suffix = |
| 51 | +dotnet_naming_style.pascal_case.word_separator = |
| 52 | +dotnet_naming_style.pascal_case.capitalization = pascal_case |
| 53 | +csharp_indent_labels = one_less_than_current |
| 54 | +csharp_prefer_simple_using_statement = true:suggestion |
| 55 | +csharp_prefer_braces = true:silent |
| 56 | +csharp_style_namespace_declarations = file_scoped:suggestion |
| 57 | +csharp_style_prefer_method_group_conversion = true:silent |
| 58 | +csharp_style_prefer_top_level_statements = true:silent |
| 59 | +csharp_style_prefer_primary_constructors = true:suggestion |
| 60 | +csharp_prefer_system_threading_lock = true:suggestion |
| 61 | +csharp_style_expression_bodied_methods = false:silent |
| 62 | +csharp_style_expression_bodied_constructors = false:silent |
| 63 | +csharp_style_expression_bodied_operators = false:silent |
| 64 | +csharp_style_expression_bodied_properties = true:silent |
| 65 | +csharp_style_expression_bodied_indexers = true:silent |
| 66 | +csharp_style_expression_bodied_accessors = true:silent |
| 67 | +csharp_style_expression_bodied_lambdas = true:silent |
| 68 | +csharp_style_expression_bodied_local_functions = false:silent |
| 69 | + |
| 70 | +[*.vb] |
| 71 | +#### Naming styles #### |
| 72 | + |
| 73 | +# Naming rules |
| 74 | + |
| 75 | +dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion |
| 76 | +dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface |
| 77 | +dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i |
| 78 | + |
| 79 | +dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion |
| 80 | +dotnet_naming_rule.types_should_be_pascal_case.symbols = types |
| 81 | +dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case |
| 82 | + |
| 83 | +dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion |
| 84 | +dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members |
| 85 | +dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case |
| 86 | + |
| 87 | +# Symbol specifications |
| 88 | + |
| 89 | +dotnet_naming_symbols.interface.applicable_kinds = interface |
| 90 | +dotnet_naming_symbols.interface.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected |
| 91 | +dotnet_naming_symbols.interface.required_modifiers = |
| 92 | + |
| 93 | +dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum |
| 94 | +dotnet_naming_symbols.types.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected |
| 95 | +dotnet_naming_symbols.types.required_modifiers = |
| 96 | + |
| 97 | +dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method |
| 98 | +dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected |
| 99 | +dotnet_naming_symbols.non_field_members.required_modifiers = |
| 100 | + |
| 101 | +# Naming styles |
| 102 | + |
| 103 | +dotnet_naming_style.begins_with_i.required_prefix = I |
| 104 | +dotnet_naming_style.begins_with_i.required_suffix = |
| 105 | +dotnet_naming_style.begins_with_i.word_separator = |
| 106 | +dotnet_naming_style.begins_with_i.capitalization = pascal_case |
| 107 | + |
| 108 | +dotnet_naming_style.pascal_case.required_prefix = |
| 109 | +dotnet_naming_style.pascal_case.required_suffix = |
| 110 | +dotnet_naming_style.pascal_case.word_separator = |
| 111 | +dotnet_naming_style.pascal_case.capitalization = pascal_case |
| 112 | + |
| 113 | +dotnet_naming_style.pascal_case.required_prefix = |
| 114 | +dotnet_naming_style.pascal_case.required_suffix = |
| 115 | +dotnet_naming_style.pascal_case.word_separator = |
| 116 | +dotnet_naming_style.pascal_case.capitalization = pascal_case |
| 117 | + |
| 118 | +[*.{cs,vb}] |
| 119 | +dotnet_style_operator_placement_when_wrapping = beginning_of_line |
| 120 | +tab_width = 4 |
| 121 | +indent_size = 4 |
| 122 | +end_of_line = crlf |
| 123 | +dotnet_style_coalesce_expression = true:suggestion |
| 124 | +dotnet_style_null_propagation = true:suggestion |
| 125 | +dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion |
| 126 | +dotnet_style_prefer_auto_properties = true:silent |
| 127 | +dotnet_style_object_initializer = true:suggestion |
| 128 | +dotnet_style_collection_initializer = true:suggestion |
| 129 | + |
| 130 | +# IDE0130: Namespace does not match folder structure |
| 131 | +dotnet_style_namespace_match_folder = false |
0 commit comments