|
| 1 | +# EditorConfig is awesome:http://EditorConfig.org |
| 2 | + |
| 3 | +# top-most EditorConfig file |
| 4 | +root = true |
| 5 | + |
| 6 | +# All Files |
| 7 | +[*] |
| 8 | +charset = utf-8 |
| 9 | +indent_style = space |
| 10 | +indent_size = 4 |
| 11 | +insert_final_newline = false |
| 12 | +trim_trailing_whitespace = true |
| 13 | +csharp_using_directive_placement = outside_namespace:silent |
| 14 | +csharp_prefer_simple_using_statement = true:suggestion |
| 15 | +csharp_prefer_braces = true:silent |
| 16 | +csharp_style_namespace_declarations = block_scoped:silent |
| 17 | +csharp_style_prefer_method_group_conversion = true:silent |
| 18 | +csharp_style_prefer_top_level_statements = true:silent |
| 19 | +csharp_style_expression_bodied_methods = false:silent |
| 20 | +csharp_style_expression_bodied_constructors = false:silent |
| 21 | +csharp_style_expression_bodied_operators = false:silent |
| 22 | +csharp_style_expression_bodied_properties = true:silent |
| 23 | +csharp_style_expression_bodied_indexers = true:silent |
| 24 | +csharp_style_expression_bodied_accessors = true:silent |
| 25 | +csharp_style_expression_bodied_lambdas = true:silent |
| 26 | +csharp_style_expression_bodied_local_functions = false:silent |
| 27 | +csharp_style_throw_expression = true:suggestion |
| 28 | +csharp_style_prefer_null_check_over_type_check = true:suggestion |
| 29 | +csharp_prefer_simple_default_expression = true:suggestion |
| 30 | +csharp_style_prefer_local_over_anonymous_function = true:suggestion |
| 31 | +csharp_style_prefer_index_operator = true:suggestion |
| 32 | +csharp_style_prefer_range_operator = true:suggestion |
| 33 | +csharp_style_implicit_object_creation_when_type_is_apparent = true:suggestion |
| 34 | +csharp_style_prefer_tuple_swap = true:suggestion |
| 35 | +csharp_style_prefer_utf8_string_literals = true:suggestion |
| 36 | +csharp_style_inlined_variable_declaration = true:suggestion |
| 37 | +csharp_indent_labels = one_less_than_current |
| 38 | +csharp_style_deconstructed_variable_declaration = true:suggestion |
| 39 | +dotnet_diagnostic.NUnit2006.severity = silent |
| 40 | +dotnet_diagnostic.NUnit2005.severity = silent |
| 41 | +dotnet_diagnostic.NUnit2004.severity = silent |
| 42 | +dotnet_diagnostic.NUnit2003.severity = silent |
| 43 | +dotnet_diagnostic.NUnit2002.severity = silent |
| 44 | +dotnet_diagnostic.NUnit2001.severity = silent |
| 45 | + |
| 46 | +# Solution Files |
| 47 | +[*.sln] |
| 48 | +indent_style = tab |
| 49 | + |
| 50 | +# XML Project Files |
| 51 | +[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}] |
| 52 | +indent_size = 2 |
| 53 | + |
| 54 | +# Configuration Files |
| 55 | +[*.{json,xml,yml,config,props,targets,nuspec,resx,ruleset}] |
| 56 | +indent_size = 2 |
| 57 | + |
| 58 | +# Txt/Markdown Files |
| 59 | +[*.{md,txt}] |
| 60 | +trim_trailing_whitespace = false |
| 61 | + |
| 62 | +# Web Files |
| 63 | +[*.{htm,html,js,ts,css,scss,less}] |
| 64 | +indent_size = 2 |
| 65 | +insert_final_newline = true |
| 66 | + |
| 67 | +# Bash Files |
| 68 | +[*.sh] |
| 69 | +end_of_line = lf |
| 70 | + |
| 71 | +[*.{cs,vb}] |
| 72 | +#### Naming styles #### |
| 73 | + |
| 74 | +# Naming rules |
| 75 | + |
| 76 | +dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion |
| 77 | +dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface |
| 78 | +dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i |
| 79 | + |
| 80 | +dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion |
| 81 | +dotnet_naming_rule.types_should_be_pascal_case.symbols = types |
| 82 | +dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case |
| 83 | + |
| 84 | +dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion |
| 85 | +dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members |
| 86 | +dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case |
| 87 | + |
| 88 | +# Symbol specifications |
| 89 | + |
| 90 | +dotnet_naming_symbols.interface.applicable_kinds = interface |
| 91 | +dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected |
| 92 | +dotnet_naming_symbols.interface.required_modifiers = |
| 93 | + |
| 94 | +dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum |
| 95 | +dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected |
| 96 | +dotnet_naming_symbols.types.required_modifiers = |
| 97 | + |
| 98 | +dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method |
| 99 | +dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected |
| 100 | +dotnet_naming_symbols.non_field_members.required_modifiers = |
| 101 | + |
| 102 | +# Naming styles |
| 103 | + |
| 104 | +dotnet_naming_style.begins_with_i.required_prefix = I |
| 105 | +dotnet_naming_style.begins_with_i.required_suffix = |
| 106 | +dotnet_naming_style.begins_with_i.word_separator = |
| 107 | +dotnet_naming_style.begins_with_i.capitalization = pascal_case |
| 108 | + |
| 109 | +dotnet_naming_style.pascal_case.required_prefix = |
| 110 | +dotnet_naming_style.pascal_case.required_suffix = |
| 111 | +dotnet_naming_style.pascal_case.word_separator = |
| 112 | +dotnet_naming_style.pascal_case.capitalization = pascal_case |
| 113 | + |
| 114 | +dotnet_naming_style.pascal_case.required_prefix = |
| 115 | +dotnet_naming_style.pascal_case.required_suffix = |
| 116 | +dotnet_naming_style.pascal_case.word_separator = |
| 117 | +dotnet_naming_style.pascal_case.capitalization = pascal_case |
| 118 | +dotnet_style_coalesce_expression = true:suggestion |
| 119 | +dotnet_style_null_propagation = true:suggestion |
| 120 | +dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion |
| 121 | +dotnet_style_prefer_auto_properties = true:silent |
| 122 | +dotnet_style_object_initializer = true:suggestion |
| 123 | +dotnet_style_collection_initializer = true:suggestion |
| 124 | +dotnet_style_prefer_simplified_boolean_expressions = true:suggestion |
| 125 | +dotnet_style_prefer_conditional_expression_over_assignment = true:silent |
| 126 | +dotnet_style_prefer_conditional_expression_over_return = true:silent |
| 127 | +dotnet_style_explicit_tuple_names = true:suggestion |
| 128 | +dotnet_style_prefer_inferred_tuple_names = true:suggestion |
| 129 | +dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion |
| 130 | +dotnet_style_prefer_compound_assignment = true:suggestion |
| 131 | +dotnet_style_prefer_simplified_interpolation = true:suggestion |
| 132 | +dotnet_style_namespace_match_folder = true:suggestion |
| 133 | +dotnet_style_operator_placement_when_wrapping = beginning_of_line |
| 134 | +tab_width = 4 |
| 135 | + |
| 136 | +# Verify settings |
| 137 | +[*.{received,verified}.{txt,xml,json}] |
| 138 | +charset = "utf-8-bom" |
| 139 | +end_of_line = lf |
| 140 | +indent_size = unset |
| 141 | +indent_style = unset |
| 142 | +insert_final_newline = false |
| 143 | +tab_width = unset |
| 144 | +trim_trailing_whitespace = false |
0 commit comments