|  | 
| 1 | 1 | # This means that editor config files above this file will be handled | 
| 2 |  | -is_global                                                   = true | 
|  | 2 | +is_global                                                               = true | 
| 3 | 3 | 
 | 
| 4 | 4 | # .NET Code Style Settings | 
| 5 | 5 | # See https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference | 
| 6 |  | -dotnet_sort_system_directives_first                         = true | 
| 7 |  | -dotnet_separate_import_directive_groups                     = false | 
|  | 6 | +dotnet_sort_system_directives_first                                     = true | 
|  | 7 | +dotnet_separate_import_directive_groups                                 = false | 
| 8 | 8 | 
 | 
| 9 | 9 | # Don't use 'this.'/'Me.' prefix for anything | 
| 10 |  | -dotnet_style_qualification_for_field                        = false : error | 
| 11 |  | -dotnet_style_qualification_for_property                     = false : error | 
| 12 |  | -dotnet_style_qualification_for_method                       = false : error | 
| 13 |  | -dotnet_style_qualification_for_event                        = false : error | 
|  | 10 | +dotnet_style_qualification_for_field                                    = false : error | 
|  | 11 | +dotnet_style_qualification_for_property                                 = false : error | 
|  | 12 | +dotnet_style_qualification_for_method                                   = false : error | 
|  | 13 | +dotnet_style_qualification_for_event                                    = false : error | 
| 14 | 14 | 
 | 
| 15 | 15 | # Use language keywords over framework type names for type references | 
| 16 | 16 | # i.e. prefer 'string' over 'String' | 
| 17 |  | -dotnet_style_predefined_type_for_locals_parameters_members  = true : error | 
| 18 |  | -dotnet_style_predefined_type_for_member_access              = true : error | 
|  | 17 | +dotnet_style_predefined_type_for_locals_parameters_members              = true : error | 
|  | 18 | +dotnet_style_predefined_type_for_member_access                          = true : error | 
| 19 | 19 | 
 | 
| 20 | 20 | # Prefer object/collection initializers | 
| 21 | 21 | # This is a suggestion because there are cases where this is necessary | 
| 22 |  | -dotnet_style_object_initializer                             = true : warning | 
| 23 |  | -dotnet_style_collection_initializer                         = true : warning | 
|  | 22 | +dotnet_style_object_initializer                                         = true : warning | 
|  | 23 | +dotnet_style_collection_initializer                                     = true : warning | 
| 24 | 24 | 
 | 
| 25 | 25 | # C# 7: Prefer using named tuple names over '.Item1', '.Item2', etc. | 
| 26 |  | -dotnet_style_explicit_tuple_names                           = true : error | 
|  | 26 | +dotnet_style_explicit_tuple_names                                       = true : error | 
| 27 | 27 | 
 | 
| 28 | 28 | # Prefer using 'foo ?? bar' over 'foo is not null ? foo : bar' | 
| 29 |  | -dotnet_style_coalesce_expression                            = true : error | 
|  | 29 | +dotnet_style_coalesce_expression                                        = true : error | 
| 30 | 30 | 
 | 
| 31 | 31 | # Prefer using '?.' over ternary null checking where possible | 
| 32 |  | -dotnet_style_null_propagation                               = true : error | 
|  | 32 | +dotnet_style_null_propagation                                           = true : error | 
| 33 | 33 | 
 | 
| 34 | 34 | # Modifier preferences | 
| 35 | 35 | # See https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-language-conventions?view=vs-2019#normalize-modifiers | 
| 36 |  | -dotnet_style_require_accessibility_modifiers                = always : error | 
| 37 |  | -dotnet_style_readonly_field                                 = true : warning | 
|  | 36 | +dotnet_style_require_accessibility_modifiers                            = always : error | 
|  | 37 | +dotnet_style_readonly_field                                             = true : warning | 
| 38 | 38 | 
 | 
| 39 | 39 | # Required Styles | 
| 40 |  | -dotnet_naming_style.all_const.capitalization                = pascal_case | 
| 41 |  | -dotnet_naming_symbols.all_const.applicable_kinds            = field | 
| 42 |  | -dotnet_naming_symbols.all_const.required_modifiers          = const | 
| 43 |  | -dotnet_naming_rule.all_const.severity                       = error | 
| 44 |  | -dotnet_naming_rule.all_const.style                          = all_elements | 
| 45 |  | -dotnet_naming_rule.all_const.symbols                        = all_const | 
| 46 |  | - | 
| 47 |  | -dotnet_naming_style.all_fields.required_prefix              = _ | 
| 48 |  | -dotnet_naming_style.all_fields.capitalization               = camel_case | 
| 49 |  | -dotnet_naming_symbols.all_fields.applicable_kinds           = field | 
| 50 |  | -dotnet_naming_rule.all_fields.severity                      = error | 
| 51 |  | -dotnet_naming_rule.all_fields.style                         = all_fields | 
| 52 |  | -dotnet_naming_rule.all_fields.symbols                       = all_fields | 
| 53 |  | - | 
| 54 |  | -dotnet_naming_style.all_interfaces.required_prefix          = I | 
| 55 |  | -dotnet_naming_style.all_interfaces.capitalization           = pascal_case | 
| 56 |  | -dotnet_naming_symbols.all_interfaces.applicable_kinds       = interface | 
| 57 |  | -dotnet_naming_rule.all_interfaces.severity                  = error | 
| 58 |  | -dotnet_naming_rule.all_interfaces.style                     = all_interfaces | 
| 59 |  | -dotnet_naming_rule.all_interfaces.symbols                   = all_interfaces | 
| 60 |  | - | 
| 61 |  | -dotnet_naming_style.all_type_parameter.required_prefix      = T | 
| 62 |  | -dotnet_naming_style.all_type_parameter.capitalization       = pascal_case | 
| 63 |  | -dotnet_naming_symbols.all_type_parameter.applicable_kinds   = type_parameter | 
| 64 |  | -dotnet_naming_rule.all_type_parameter.severity              = error | 
| 65 |  | -dotnet_naming_rule.all_type_parameter.style                 = all_type_parameter | 
| 66 |  | -dotnet_naming_rule.all_type_parameter.symbols               = all_type_parameter | 
| 67 |  | - | 
| 68 |  | -dotnet_naming_style.abstract_class.required_suffix          = Base | 
| 69 |  | -dotnet_naming_style.abstract_class.capitalization           = pascal_case | 
| 70 |  | -dotnet_naming_symbols.abstract_class.applicable_kinds       = class | 
| 71 |  | -dotnet_naming_symbols.abstract_class.required_modifiers     = abstract | 
| 72 |  | -dotnet_naming_rule.abstract_class.severity                  = warning | 
| 73 |  | -dotnet_naming_rule.abstract_class.style                     = abstract_class | 
| 74 |  | -dotnet_naming_rule.abstract_class.symbols                   = abstract_class | 
| 75 |  | - | 
| 76 |  | -dotnet_naming_style.method_async.required_suffix            = Async | 
| 77 |  | -dotnet_naming_style.method_async.capitalization             = pascal_case | 
| 78 |  | -dotnet_naming_symbols.method_async.applicable_kinds         = method | 
| 79 |  | -dotnet_naming_symbols.method_async.required_modifiers       = async | 
| 80 |  | -dotnet_naming_rule.method_async.severity                    = warning | 
| 81 |  | -dotnet_naming_rule.method_async.style                       = method_async | 
| 82 |  | -dotnet_naming_rule.method_async.symbols                     = method_async | 
| 83 |  | - | 
| 84 |  | -dotnet_naming_style.all_elements.capitalization             = pascal_case | 
| 85 |  | -dotnet_naming_symbols.all_elements.applicable_kinds         = namespace,class,struct,enum,property,method,event,delegate,local_function | 
| 86 |  | -dotnet_naming_rule.all_elements.severity                    = error | 
| 87 |  | -dotnet_naming_rule.all_elements.style                       = all_elements | 
| 88 |  | -dotnet_naming_rule.all_elements.symbols                     = all_elements | 
| 89 |  | - | 
| 90 |  | -dotnet_naming_style.all_parameters.capitalization           = camel_case | 
| 91 |  | -dotnet_naming_symbols.all_parameters.applicable_kinds       = parameter,local | 
| 92 |  | -dotnet_naming_rule.all_parameters.severity                  = error | 
| 93 |  | -dotnet_naming_rule.all_parameters.style                     = all_parameters | 
| 94 |  | -dotnet_naming_rule.all_parameters.symbols                   = all_parameters | 
| 95 |  | - | 
| 96 |  | -dotnet_style_operator_placement_when_wrapping               = beginning_of_line | 
| 97 |  | -dotnet_style_prefer_is_null_check_over_reference_equality_method = true : suggestion | 
| 98 |  | -dotnet_style_prefer_auto_properties                         = true : silent | 
|  | 40 | +dotnet_naming_style.all_const.capitalization                            = pascal_case | 
|  | 41 | +dotnet_naming_symbols.all_const.applicable_kinds                        = field | 
|  | 42 | +dotnet_naming_symbols.all_const.required_modifiers                      = const | 
|  | 43 | +dotnet_naming_rule.all_const.severity                                   = error | 
|  | 44 | +dotnet_naming_rule.all_const.style                                      = all_elements | 
|  | 45 | +dotnet_naming_rule.all_const.symbols                                    = all_const | 
|  | 46 | + | 
|  | 47 | +dotnet_naming_style.all_fields.required_prefix                          = _ | 
|  | 48 | +dotnet_naming_style.all_fields.capitalization                           = camel_case | 
|  | 49 | +dotnet_naming_symbols.all_fields.applicable_kinds                       = field | 
|  | 50 | +dotnet_naming_rule.all_fields.severity                                  = error | 
|  | 51 | +dotnet_naming_rule.all_fields.style                                     = all_fields | 
|  | 52 | +dotnet_naming_rule.all_fields.symbols                                   = all_fields | 
|  | 53 | + | 
|  | 54 | +dotnet_naming_style.all_interfaces.required_prefix                      = I | 
|  | 55 | +dotnet_naming_style.all_interfaces.capitalization                       = pascal_case | 
|  | 56 | +dotnet_naming_symbols.all_interfaces.applicable_kinds                   = interface | 
|  | 57 | +dotnet_naming_rule.all_interfaces.severity                              = error | 
|  | 58 | +dotnet_naming_rule.all_interfaces.style                                 = all_interfaces | 
|  | 59 | +dotnet_naming_rule.all_interfaces.symbols                               = all_interfaces | 
|  | 60 | + | 
|  | 61 | +dotnet_naming_style.all_type_parameter.required_prefix                  = T | 
|  | 62 | +dotnet_naming_style.all_type_parameter.capitalization                   = pascal_case | 
|  | 63 | +dotnet_naming_symbols.all_type_parameter.applicable_kinds               = type_parameter | 
|  | 64 | +dotnet_naming_rule.all_type_parameter.severity                          = error | 
|  | 65 | +dotnet_naming_rule.all_type_parameter.style                             = all_type_parameter | 
|  | 66 | +dotnet_naming_rule.all_type_parameter.symbols                           = all_type_parameter | 
|  | 67 | + | 
|  | 68 | +dotnet_naming_style.abstract_class.required_suffix                      = Base | 
|  | 69 | +dotnet_naming_style.abstract_class.capitalization                       = pascal_case | 
|  | 70 | +dotnet_naming_symbols.abstract_class.applicable_kinds                   = class | 
|  | 71 | +dotnet_naming_symbols.abstract_class.required_modifiers                 = abstract | 
|  | 72 | +dotnet_naming_rule.abstract_class.severity                              = warning | 
|  | 73 | +dotnet_naming_rule.abstract_class.style                                 = abstract_class | 
|  | 74 | +dotnet_naming_rule.abstract_class.symbols                               = abstract_class | 
|  | 75 | + | 
|  | 76 | +dotnet_naming_style.method_async.required_suffix                        = Async | 
|  | 77 | +dotnet_naming_style.method_async.capitalization                         = pascal_case | 
|  | 78 | +dotnet_naming_symbols.method_async.applicable_kinds                     = method | 
|  | 79 | +dotnet_naming_symbols.method_async.required_modifiers                   = async | 
|  | 80 | +dotnet_naming_rule.method_async.severity                                = warning | 
|  | 81 | +dotnet_naming_rule.method_async.style                                   = method_async | 
|  | 82 | +dotnet_naming_rule.method_async.symbols                                 = method_async | 
|  | 83 | + | 
|  | 84 | +dotnet_naming_style.all_elements.capitalization                         = pascal_case | 
|  | 85 | +dotnet_naming_symbols.all_elements.applicable_kinds                     = namespace,class,struct,enum,property,method,event,delegate,local_function | 
|  | 86 | +dotnet_naming_rule.all_elements.severity                                = error | 
|  | 87 | +dotnet_naming_rule.all_elements.style                                   = all_elements | 
|  | 88 | +dotnet_naming_rule.all_elements.symbols                                 = all_elements | 
|  | 89 | + | 
|  | 90 | +dotnet_naming_style.all_parameters.capitalization                       = camel_case | 
|  | 91 | +dotnet_naming_symbols.all_parameters.applicable_kinds                   = parameter,local | 
|  | 92 | +dotnet_naming_rule.all_parameters.severity                              = error | 
|  | 93 | +dotnet_naming_rule.all_parameters.style                                 = all_parameters | 
|  | 94 | +dotnet_naming_rule.all_parameters.symbols                               = all_parameters | 
|  | 95 | + | 
|  | 96 | +dotnet_style_operator_placement_when_wrapping                           = beginning_of_line | 
|  | 97 | +dotnet_style_prefer_is_null_check_over_reference_equality_method        = true : suggestion | 
|  | 98 | +dotnet_style_prefer_auto_properties                                     = true : silent | 
| 99 | 99 | 
 | 
| 100 | 100 | # Placement for using directives | 
| 101 |  | -csharp_using_directive_placement                            = inside_namespace : warning | 
|  | 101 | +csharp_using_directive_placement                                        = inside_namespace : warning | 
| 102 | 102 | 
 | 
| 103 | 103 | # Use 'var' in all cases where it can be used | 
| 104 |  | -csharp_style_var_for_built_in_types                         = true : error | 
| 105 |  | -csharp_style_var_when_type_is_apparent                      = true : error | 
| 106 |  | -csharp_style_var_elsewhere                                  = true : error | 
|  | 104 | +csharp_style_var_for_built_in_types                                     = true : error | 
|  | 105 | +csharp_style_var_when_type_is_apparent                                  = true : error | 
|  | 106 | +csharp_style_var_elsewhere                                              = true : error | 
| 107 | 107 | 
 | 
| 108 | 108 | # Unused value preferences | 
| 109 |  | -csharp_style_unused_value_expression_statement_preference   = discard_variable : warning | 
| 110 |  | -csharp_style_unused_value_assignment_preference             = discard_variable : warning | 
|  | 109 | +csharp_style_unused_value_expression_statement_preference               = discard_variable : warning | 
|  | 110 | +csharp_style_unused_value_assignment_preference                         = discard_variable : warning | 
| 111 | 111 | 
 | 
| 112 | 112 | # C# 7: Prefer using pattern matching over "if(x is T) { var t = (T)x; }" and "var t = x as T; if(t is not null) { ... }" | 
| 113 |  | -csharp_style_pattern_matching_over_is_with_cast_check       = true : warning | 
| 114 |  | -csharp_style_pattern_matching_over_as_with_null_check       = true : warning | 
|  | 113 | +csharp_style_pattern_matching_over_is_with_cast_check                   = true : warning | 
|  | 114 | +csharp_style_pattern_matching_over_as_with_null_check                   = true : warning | 
| 115 | 115 | 
 | 
| 116 | 116 | # C# 7: Prefer using 'out var' where possible | 
| 117 |  | -csharp_style_inlined_variable_declaration                   = true : error | 
|  | 117 | +csharp_style_inlined_variable_declaration                               = true : error | 
| 118 | 118 | 
 | 
| 119 | 119 | # C# 7: Use throw expressions when null-checking | 
| 120 |  | -csharp_style_throw_expression                               = false : error | 
|  | 120 | +csharp_style_throw_expression                                           = false : error | 
| 121 | 121 | 
 | 
| 122 | 122 | # Prefer using "func?.Invoke(args)" over "if(func is not null) { func(args); }" | 
| 123 |  | -csharp_style_conditional_delegate_call                      = true : error | 
|  | 123 | +csharp_style_conditional_delegate_call                                  = true : error | 
| 124 | 124 | 
 | 
| 125 | 125 | # Newline settings | 
| 126 |  | -csharp_indent_braces                                        = false | 
| 127 |  | -csharp_open_brace_on_new_line                               = all | 
| 128 |  | -csharp_new_line_before_open_brace                           = all | 
| 129 |  | -csharp_new_line_before_else                                 = true | 
| 130 |  | -csharp_new_line_before_catch                                = true | 
| 131 |  | -csharp_new_line_before_finally                              = true | 
| 132 |  | -csharp_new_line_before_members_in_object_initializers       = true | 
| 133 |  | -csharp_new_line_before_members_in_anonymous_types           = true | 
|  | 126 | +csharp_indent_braces                                                    = false | 
|  | 127 | +csharp_open_brace_on_new_line                                           = all | 
|  | 128 | +csharp_new_line_before_open_brace                                       = all | 
|  | 129 | +csharp_new_line_before_else                                             = true | 
|  | 130 | +csharp_new_line_before_catch                                            = true | 
|  | 131 | +csharp_new_line_before_finally                                          = true | 
|  | 132 | +csharp_new_line_before_members_in_object_initializers                   = true | 
|  | 133 | +csharp_new_line_before_members_in_anonymous_types                       = true | 
| 134 | 134 | 
 | 
| 135 | 135 | # Prefer expression-bodied methods, constructors, operators, etc. | 
| 136 |  | -csharp_style_expression_bodied_methods                      = true : warning | 
| 137 |  | -csharp_style_expression_bodied_constructors                 = true : warning | 
| 138 |  | -csharp_style_expression_bodied_operators                    = true : warning | 
| 139 |  | -csharp_style_expression_bodied_properties                   = true : warning | 
| 140 |  | -csharp_style_expression_bodied_indexers                     = true : warning | 
| 141 |  | -csharp_style_expression_bodied_accessors                    = true : warning | 
|  | 136 | +csharp_style_expression_bodied_methods                                  = true : warning | 
|  | 137 | +csharp_style_expression_bodied_constructors                             = true : warning | 
|  | 138 | +csharp_style_expression_bodied_operators                                = true : warning | 
|  | 139 | +csharp_style_expression_bodied_properties                               = true : warning | 
|  | 140 | +csharp_style_expression_bodied_indexers                                 = true : warning | 
|  | 141 | +csharp_style_expression_bodied_accessors                                = true : warning | 
| 142 | 142 | 
 | 
| 143 | 143 | # Prefer Braces even for one line of code, because of | 
| 144 |  | -csharp_prefer_braces                                        = true : error | 
| 145 |  | -csharp_type_declaration_braces                              = next_line | 
| 146 |  | -csharp_invocable_declaration_braces                         = next_line | 
| 147 |  | -csharp_anonymous_method_declaration_braces                  = next_line | 
| 148 |  | -csharp_accessor_owner_declaration_braces                    = next_line | 
| 149 |  | -csharp_accessor_declaration_braces                          = next_line | 
| 150 |  | -csharp_case_block_braces                                    = next_line | 
| 151 |  | -csharp_initializer_braces                                   = next_line | 
| 152 |  | -csharp_other_braces                                         = next_line | 
|  | 144 | +csharp_prefer_braces                                                    = true : error | 
|  | 145 | +csharp_type_declaration_braces                                          = next_line | 
|  | 146 | +csharp_invocable_declaration_braces                                     = next_line | 
|  | 147 | +csharp_anonymous_method_declaration_braces                              = next_line | 
|  | 148 | +csharp_accessor_owner_declaration_braces                                = next_line | 
|  | 149 | +csharp_accessor_declaration_braces                                      = next_line | 
|  | 150 | +csharp_case_block_braces                                                = next_line | 
|  | 151 | +csharp_initializer_braces                                               = next_line | 
|  | 152 | +csharp_other_braces                                                     = next_line | 
| 153 | 153 | 
 | 
| 154 | 154 | # Tuple Preferences | 
| 155 |  | -csharp_style_deconstructed_variable_declaration             = true : warning | 
|  | 155 | +csharp_style_deconstructed_variable_declaration                         = true : warning | 
| 156 | 156 | 
 | 
| 157 | 157 | # Simplify new expression (IDE0090) | 
| 158 |  | -csharp_style_implicit_object_creation_when_type_is_apparent = false | 
| 159 |  | -csharp_style_namespace_declarations                         = file_scoped : warning | 
| 160 |  | -csharp_prefer_simple_using_statement                        = false : suggestion | 
| 161 |  | -csharp_indent_labels                                        = one_less_than_current | 
| 162 |  | -csharp_style_expression_bodied_lambdas                      = true : silent | 
| 163 |  | -csharp_style_expression_bodied_local_functions              = false : silent | 
|  | 158 | +csharp_style_implicit_object_creation_when_type_is_apparent             = false | 
|  | 159 | +csharp_style_namespace_declarations                                     = file_scoped : warning | 
|  | 160 | +csharp_prefer_simple_using_statement                                    = false : suggestion | 
|  | 161 | +csharp_indent_labels                                                    = one_less_than_current | 
|  | 162 | +csharp_style_expression_bodied_lambdas                                  = true : silent | 
|  | 163 | +csharp_style_expression_bodied_local_functions                          = false : silent | 
| 164 | 164 | 
 | 
| 165 | 165 | # Use Compound assignment | 
| 166 |  | -dotnet_style_prefer_compound_assignment                     = false | 
|  | 166 | +dotnet_style_prefer_compound_assignment                                 = false | 
| 167 | 167 | 
 | 
| 168 | 168 | # Prefer if-else statement | 
| 169 |  | -dotnet_style_prefer_conditional_expression_over_return      = false | 
| 170 |  | -dotnet_diagnostic.IDE0046.severity = none | 
|  | 169 | +dotnet_style_prefer_conditional_expression_over_return                  = false | 
|  | 170 | +dotnet_diagnostic.IDE0046.severity                                      = suggestion | 
| 171 | 171 | 
 | 
|  | 172 | +# Prefer standard constructors | 
|  | 173 | +csharp_style_prefer_primary_constructors                                = false | 
|  | 174 | +dotnet_diagnostic.IDE0290.severity                                      =  | 
0 commit comments