|
| 1 | +[*.cs] |
| 2 | + |
| 3 | +# CA1416: Validate platform compatibility |
| 4 | +dotnet_diagnostic.CA1416.severity = none |
| 5 | + |
| 6 | +[*.cs] |
| 7 | +#### Naming styles #### |
| 8 | + |
| 9 | +# Naming rules |
| 10 | + |
| 11 | +dotnet_naming_rule.private_or_internal_field_should_be__exampleidentifier.severity = suggestion |
| 12 | +dotnet_naming_rule.private_or_internal_field_should_be__exampleidentifier.symbols = private_or_internal_field |
| 13 | +dotnet_naming_rule.private_or_internal_field_should_be__exampleidentifier.style = _exampleidentifier |
| 14 | + |
| 15 | +# Symbol specifications |
| 16 | + |
| 17 | +dotnet_naming_symbols.private_or_internal_field.applicable_kinds = field |
| 18 | +dotnet_naming_symbols.private_or_internal_field.applicable_accessibilities = internal, private, private_protected |
| 19 | +dotnet_naming_symbols.private_or_internal_field.required_modifiers = |
| 20 | + |
| 21 | +# Naming styles |
| 22 | + |
| 23 | +dotnet_naming_style._exampleidentifier.required_prefix = _ |
| 24 | +dotnet_naming_style._exampleidentifier.required_suffix = |
| 25 | +dotnet_naming_style._exampleidentifier.word_separator = |
| 26 | +dotnet_naming_style._exampleidentifier.capitalization = camel_case |
| 27 | +csharp_indent_labels = one_less_than_current |
| 28 | +csharp_using_directive_placement = outside_namespace:silent |
| 29 | +csharp_prefer_simple_using_statement = true:suggestion |
| 30 | +csharp_prefer_braces = true:silent |
| 31 | +csharp_style_namespace_declarations = block_scoped:silent |
| 32 | +csharp_style_prefer_method_group_conversion = true:silent |
| 33 | +csharp_style_expression_bodied_methods = false:silent |
| 34 | +csharp_style_expression_bodied_constructors = false:silent |
| 35 | +csharp_style_expression_bodied_operators = false:silent |
| 36 | +csharp_style_expression_bodied_properties = true:silent |
| 37 | +csharp_style_expression_bodied_indexers = true:silent |
| 38 | +csharp_style_expression_bodied_accessors = true:silent |
| 39 | +csharp_style_expression_bodied_lambdas = true:silent |
| 40 | +csharp_style_expression_bodied_local_functions = false:silent |
| 41 | +csharp_style_throw_expression = true:suggestion |
| 42 | +csharp_space_around_binary_operators = before_and_after |
| 43 | +csharp_style_prefer_null_check_over_type_check = true:suggestion |
| 44 | +csharp_prefer_simple_default_expression = true:suggestion |
| 45 | +csharp_style_prefer_local_over_anonymous_function = true:suggestion |
| 46 | +csharp_style_prefer_index_operator = true:suggestion |
| 47 | +csharp_style_prefer_range_operator = true:suggestion |
| 48 | +csharp_style_implicit_object_creation_when_type_is_apparent = true:suggestion |
| 49 | +csharp_style_prefer_tuple_swap = true:suggestion |
| 50 | +csharp_style_inlined_variable_declaration = true:suggestion |
| 51 | +csharp_style_deconstructed_variable_declaration = true:suggestion |
| 52 | +csharp_style_unused_value_assignment_preference = discard_variable:suggestion |
| 53 | +csharp_style_unused_value_expression_statement_preference = discard_variable:silent |
| 54 | + |
| 55 | +[*.{cs,vb}] |
| 56 | +#### Naming styles #### |
| 57 | + |
| 58 | +# Naming rules |
| 59 | + |
| 60 | +dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion |
| 61 | +dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface |
| 62 | +dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i |
| 63 | + |
| 64 | +dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion |
| 65 | +dotnet_naming_rule.types_should_be_pascal_case.symbols = types |
| 66 | +dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case |
| 67 | + |
| 68 | +dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion |
| 69 | +dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members |
| 70 | +dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case |
| 71 | + |
| 72 | +# Symbol specifications |
| 73 | + |
| 74 | +dotnet_naming_symbols.interface.applicable_kinds = interface |
| 75 | +dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected |
| 76 | +dotnet_naming_symbols.interface.required_modifiers = |
| 77 | + |
| 78 | +dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum |
| 79 | +dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected |
| 80 | +dotnet_naming_symbols.types.required_modifiers = |
| 81 | + |
| 82 | +dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method |
| 83 | +dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected |
| 84 | +dotnet_naming_symbols.non_field_members.required_modifiers = |
| 85 | + |
| 86 | +# Naming styles |
| 87 | + |
| 88 | +dotnet_naming_style.begins_with_i.required_prefix = I |
| 89 | +dotnet_naming_style.begins_with_i.required_suffix = |
| 90 | +dotnet_naming_style.begins_with_i.word_separator = |
| 91 | +dotnet_naming_style.begins_with_i.capitalization = pascal_case |
| 92 | + |
| 93 | +dotnet_naming_style.pascal_case.required_prefix = |
| 94 | +dotnet_naming_style.pascal_case.required_suffix = |
| 95 | +dotnet_naming_style.pascal_case.word_separator = |
| 96 | +dotnet_naming_style.pascal_case.capitalization = pascal_case |
| 97 | + |
| 98 | +dotnet_naming_style.pascal_case.required_prefix = |
| 99 | +dotnet_naming_style.pascal_case.required_suffix = |
| 100 | +dotnet_naming_style.pascal_case.word_separator = |
| 101 | +dotnet_naming_style.pascal_case.capitalization = pascal_case |
| 102 | +dotnet_style_operator_placement_when_wrapping = beginning_of_line |
| 103 | +tab_width = 4 |
| 104 | +indent_size = 4 |
| 105 | +end_of_line = crlf |
| 106 | +dotnet_style_coalesce_expression = true:suggestion |
| 107 | +dotnet_style_null_propagation = true:suggestion |
| 108 | +dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion |
| 109 | +dotnet_style_prefer_auto_properties = true:silent |
| 110 | +dotnet_style_object_initializer = true:suggestion |
| 111 | +dotnet_style_collection_initializer = true:suggestion |
| 112 | +dotnet_style_prefer_simplified_boolean_expressions = true:suggestion |
| 113 | +dotnet_style_prefer_conditional_expression_over_assignment = true:silent |
| 114 | +dotnet_style_prefer_conditional_expression_over_return = true:silent |
| 115 | +dotnet_style_explicit_tuple_names = true:suggestion |
| 116 | +dotnet_style_prefer_inferred_tuple_names = true:suggestion |
| 117 | +dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion |
| 118 | +dotnet_style_prefer_compound_assignment = true:suggestion |
| 119 | +dotnet_style_prefer_simplified_interpolation = true:suggestion |
| 120 | +dotnet_style_namespace_match_folder = true:suggestion |
| 121 | +dotnet_style_readonly_field = true:suggestion |
| 122 | +dotnet_style_predefined_type_for_locals_parameters_members = true:silent |
0 commit comments