|
2 | 2 |
|
3 | 3 | # IDE1006: Naming Styles
|
4 | 4 | dotnet_diagnostic.IDE1006.severity = suggestion
|
| 5 | +csharp_indent_labels = one_less_than_current |
| 6 | +csharp_using_directive_placement = outside_namespace:silent |
| 7 | +csharp_prefer_simple_using_statement = true:suggestion |
| 8 | +csharp_prefer_braces = true:silent |
| 9 | +csharp_style_namespace_declarations = block_scoped:silent |
| 10 | +csharp_style_prefer_method_group_conversion = true:silent |
| 11 | +csharp_style_prefer_top_level_statements = true:silent |
| 12 | +csharp_style_prefer_primary_constructors = true:suggestion |
| 13 | +csharp_prefer_system_threading_lock = true:suggestion |
| 14 | +csharp_style_expression_bodied_methods = false:silent |
| 15 | +csharp_style_expression_bodied_constructors = false:silent |
| 16 | +csharp_style_expression_bodied_operators = false:silent |
| 17 | +csharp_style_expression_bodied_properties = true:silent |
| 18 | +csharp_style_expression_bodied_indexers = true:silent |
| 19 | +csharp_style_expression_bodied_accessors = true:silent |
| 20 | +csharp_style_expression_bodied_lambdas = true:silent |
| 21 | +csharp_style_expression_bodied_local_functions = false:silent |
| 22 | +csharp_space_around_binary_operators = before_and_after |
| 23 | + |
| 24 | +[*.{cs,vb}] |
| 25 | +#### Naming styles #### |
| 26 | + |
| 27 | +# Naming rules |
| 28 | + |
| 29 | +dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion |
| 30 | +dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface |
| 31 | +dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i |
| 32 | + |
| 33 | +dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion |
| 34 | +dotnet_naming_rule.types_should_be_pascal_case.symbols = types |
| 35 | +dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case |
| 36 | + |
| 37 | +dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion |
| 38 | +dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members |
| 39 | +dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case |
| 40 | + |
| 41 | +# Symbol specifications |
| 42 | + |
| 43 | +dotnet_naming_symbols.interface.applicable_kinds = interface |
| 44 | +dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected |
| 45 | +dotnet_naming_symbols.interface.required_modifiers = |
| 46 | + |
| 47 | +dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum |
| 48 | +dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected |
| 49 | +dotnet_naming_symbols.types.required_modifiers = |
| 50 | + |
| 51 | +dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method |
| 52 | +dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected |
| 53 | +dotnet_naming_symbols.non_field_members.required_modifiers = |
| 54 | + |
| 55 | +# Naming styles |
| 56 | + |
| 57 | +dotnet_naming_style.begins_with_i.required_prefix = I |
| 58 | +dotnet_naming_style.begins_with_i.required_suffix = |
| 59 | +dotnet_naming_style.begins_with_i.word_separator = |
| 60 | +dotnet_naming_style.begins_with_i.capitalization = pascal_case |
| 61 | + |
| 62 | +dotnet_naming_style.pascal_case.required_prefix = |
| 63 | +dotnet_naming_style.pascal_case.required_suffix = |
| 64 | +dotnet_naming_style.pascal_case.word_separator = |
| 65 | +dotnet_naming_style.pascal_case.capitalization = pascal_case |
| 66 | + |
| 67 | +dotnet_naming_style.pascal_case.required_prefix = |
| 68 | +dotnet_naming_style.pascal_case.required_suffix = |
| 69 | +dotnet_naming_style.pascal_case.word_separator = |
| 70 | +dotnet_naming_style.pascal_case.capitalization = pascal_case |
| 71 | +dotnet_style_operator_placement_when_wrapping = beginning_of_line |
| 72 | +tab_width = 2 |
| 73 | +indent_size = 2 |
| 74 | +end_of_line = crlf |
| 75 | +dotnet_style_coalesce_expression = true:suggestion |
| 76 | +dotnet_style_null_propagation = true:suggestion |
| 77 | +dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion |
| 78 | +dotnet_style_prefer_auto_properties = true:silent |
| 79 | +dotnet_style_object_initializer = true:suggestion |
| 80 | +dotnet_style_collection_initializer = true:suggestion |
| 81 | +dotnet_style_prefer_simplified_boolean_expressions = true:suggestion |
| 82 | +dotnet_style_prefer_conditional_expression_over_assignment = true:silent |
0 commit comments