|
| 1 | +############################################################################### |
| 2 | +# EditorConfig is awesome: http://EditorConfig.org |
| 3 | +############################################################################### |
| 4 | + |
| 5 | +############################################################################### |
| 6 | +# Top-most EditorConfig file |
| 7 | +############################################################################### |
| 8 | +root = true |
| 9 | + |
| 10 | +############################################################################### |
| 11 | +# Set default behavior to: |
| 12 | +# a UTF-8 encoding, |
| 13 | +# a newline ending the file, |
| 14 | +# 4 space indentation, and |
| 15 | +# trimming of trailing whitespace |
| 16 | +############################################################################### |
| 17 | +[*] |
| 18 | +charset = utf-8 |
| 19 | +insert_final_newline = true |
| 20 | +indent_style = space |
| 21 | +indent_size = 4 |
| 22 | +trim_trailing_whitespace = true |
| 23 | + |
| 24 | +############################################################################### |
| 25 | +# Set file behavior to: |
| 26 | +# 2 space indentation |
| 27 | +############################################################################### |
| 28 | +[*.{cmd,config,csproj,json,props,ps1,resx,sh,targets}] |
| 29 | +indent_size = 2 |
| 30 | + |
| 31 | +############################################################################### |
| 32 | +# Set file behavior to: |
| 33 | +# Windows-style line endings, and |
| 34 | +# tabular indentation |
| 35 | +############################################################################### |
| 36 | +[*.sln] |
| 37 | +end_of_line = crlf |
| 38 | +indent_style = tab |
| 39 | + |
| 40 | +############################################################################### |
| 41 | +# Set file behavior to: |
| 42 | +# Unix-style line endings |
| 43 | +############################################################################### |
| 44 | +[*.sh] |
| 45 | +end_of_line = lf |
| 46 | + |
| 47 | +############################################################################### |
| 48 | +# Set dotnet naming rules to: |
| 49 | +# suggest async members be pascal case suffixed with Async |
| 50 | +# suggest interfaces be pascal case prefixed with I |
| 51 | +# suggest const declarations be pascal case |
| 52 | +# suggest static readonly declarations be pascal case |
| 53 | +# suggest private and internal fields be camel case and prefixed with underscore |
| 54 | +# suggest public and protected declarations be pascal case |
| 55 | +############################################################################### |
| 56 | +[*.cs] |
| 57 | +dotnet_naming_rule.async_members_should_be_pascal_case_suffixed_with_async.severity = suggestion |
| 58 | +dotnet_naming_rule.async_members_should_be_pascal_case_suffixed_with_async.style = pascal_case_suffixed_with_async |
| 59 | +dotnet_naming_rule.async_members_should_be_pascal_case_suffixed_with_async.symbols = async_members |
| 60 | + |
| 61 | +dotnet_naming_rule.interfaces_should_be_pascal_case_prefixed_with_i.severity = suggestion |
| 62 | +dotnet_naming_rule.interfaces_should_be_pascal_case_prefixed_with_i.style = pascal_case_prefixed_with_i |
| 63 | +dotnet_naming_rule.interfaces_should_be_pascal_case_prefixed_with_i.symbols = interfaces |
| 64 | + |
| 65 | +dotnet_naming_rule.const_declarations_should_be_pascal_case.severity = suggestion |
| 66 | +dotnet_naming_rule.const_declarations_should_be_pascal_case.style = pascal_case |
| 67 | +dotnet_naming_rule.const_declarations_should_be_pascal_case.symbols = const_declarations |
| 68 | + |
| 69 | +dotnet_naming_rule.static_readonly_declarations_should_be_pascal_case.severity = suggestion |
| 70 | +dotnet_naming_rule.static_readonly_declarations_should_be_pascal_case.style = pascal_case |
| 71 | +dotnet_naming_rule.static_readonly_declarations_should_be_pascal_case.symbols = static_readonly_declarations |
| 72 | + |
| 73 | +dotnet_naming_rule.private_and_internal_fields_should_be_camel_case_prefixed_with_underscore.severity = suggestion |
| 74 | +dotnet_naming_rule.private_and_internal_fields_should_be_camel_case_prefixed_with_underscore.style = camel_case_prefixed_with_underscore |
| 75 | +dotnet_naming_rule.private_and_internal_fields_should_be_camel_case_prefixed_with_underscore.symbols = private_and_internal_fields |
| 76 | + |
| 77 | +dotnet_naming_rule.public_and_protected_declarations_should_be_pascal_case.severity = suggestion |
| 78 | +dotnet_naming_rule.public_and_protected_declarations_should_be_pascal_case.style = pascal_case |
| 79 | +dotnet_naming_rule.public_and_protected_declarations_should_be_pascal_case.symbols = public_and_protected_declarations |
| 80 | + |
| 81 | +############################################################################### |
| 82 | +# Set dotnet naming styles to define: |
| 83 | +# camel case prefixed with _ |
| 84 | +# pascal case |
| 85 | +# pascal case prefixed with I |
| 86 | +# pascal case suffixed with Async |
| 87 | +############################################################################### |
| 88 | +[*.cs] |
| 89 | +dotnet_naming_style.camel_case_prefixed_with_underscore.capitalization = camel_case |
| 90 | +dotnet_naming_style.camel_case_prefixed_with_underscore.required_prefix = _ |
| 91 | + |
| 92 | +dotnet_naming_style.pascal_case.capitalization = pascal_case |
| 93 | + |
| 94 | +dotnet_naming_style.pascal_case_prefixed_with_i.capitalization = pascal_case |
| 95 | +dotnet_naming_style.pascal_case_prefixed_with_i.required_prefix = I |
| 96 | + |
| 97 | +dotnet_naming_style.pascal_case_suffixed_with_async.capitalization = pascal_case |
| 98 | +dotnet_naming_style.pascal_case_suffixed_with_async.required_suffix = Async |
| 99 | + |
| 100 | +############################################################################### |
| 101 | +# Set dotnet naming symbols to: |
| 102 | +# async members |
| 103 | +# private and internal fields |
| 104 | +# public and protected declarations |
| 105 | +############################################################################### |
| 106 | +[*.cs] |
| 107 | +dotnet_naming_symbols.async_members.required_modifiers = async |
| 108 | + |
| 109 | +dotnet_naming_symbols.const_declarations.required_modifiers = const |
| 110 | + |
| 111 | +dotnet_naming_symbols.interfaces.applicable_kinds = interface |
| 112 | + |
| 113 | +dotnet_naming_symbols.private_and_internal_fields.applicable_accessibilities = private, internal |
| 114 | +dotnet_naming_symbols.private_and_internal_fields.applicable_kinds = field |
| 115 | + |
| 116 | +dotnet_naming_symbols.public_and_protected_declarations.applicable_accessibilities = public, protected |
| 117 | + |
| 118 | +dotnet_naming_symbols.static_readonly_declarations.required_modifiers = static, readonly |
| 119 | + |
| 120 | +############################################################################### |
| 121 | +# Set dotnet sort options to: |
| 122 | +# separate import directives into groups, and |
| 123 | +# sort system directives first |
| 124 | +############################################################################### |
| 125 | +[*.cs] |
| 126 | +dotnet_separate_import_directive_groups = false |
| 127 | +dotnet_sort_system_directives_first = true |
| 128 | + |
| 129 | +############################################################################### |
| 130 | +# Set dotnet style options to: |
| 131 | +# suggest null-coalescing expressions, |
| 132 | +# suggest collection-initializers, |
| 133 | +# suggest explicit tuple names, |
| 134 | +# suggest null-propogation |
| 135 | +# suggest object-initializers, |
| 136 | +# suggest predefined-types for locals, parameters, and members, |
| 137 | +# suggest predefined-types of type names for member access, |
| 138 | +# suggest 'is null' checks over '== null', |
| 139 | +# don't suggest 'this.' and 'Me.' for events, |
| 140 | +# don't suggest 'this.' and 'Me.' for fields, |
| 141 | +# don't suggest 'this.' and 'Me.' for methods, |
| 142 | +# don't suggest 'this.' and 'Me.' for properties, and |
| 143 | +# suggest specifying accessibility modifiers |
| 144 | +############################################################################### |
| 145 | +[*.cs] |
| 146 | +dotnet_style_coalesce_expression = true:suggestion |
| 147 | +dotnet_style_collection_initializer = true:suggestion |
| 148 | +dotnet_style_explicit_tuple_names = true:suggestion |
| 149 | +dotnet_style_null_propagation = true:suggestion |
| 150 | +dotnet_style_object_initializer = true:suggestion |
| 151 | + |
| 152 | +dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion |
| 153 | +dotnet_style_predefined_type_for_member_access = true:suggestion |
| 154 | + |
| 155 | +dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion |
| 156 | + |
| 157 | +dotnet_style_qualification_for_event = false:suggestion |
| 158 | +dotnet_style_qualification_for_field = false:suggestion |
| 159 | +dotnet_style_qualification_for_method = false:suggestion |
| 160 | +dotnet_style_qualification_for_property = false:suggestion |
| 161 | + |
| 162 | +dotnet_style_require_accessibility_modifiers = always:suggestion |
| 163 | + |
| 164 | +############################################################################### |
| 165 | +# Set csharp indent options to: |
| 166 | +# indent block contents, |
| 167 | +# not indent braces, |
| 168 | +# not indent case contents, |
| 169 | +# indent labels one less than the current, and |
| 170 | +# indent switch labels |
| 171 | +############################################################################### |
| 172 | +[*.cs] |
| 173 | +csharp_indent_block_contents = true |
| 174 | +csharp_indent_braces = false |
| 175 | +csharp_indent_case_contents = true |
| 176 | +csharp_indent_case_contents_when_block = false |
| 177 | +csharp_indent_labels = one_less_than_current |
| 178 | +csharp_indent_switch_labels = true |
| 179 | + |
| 180 | +############################################################################### |
| 181 | +# Set csharp new-line options to: |
| 182 | +# insert a new-line before "catch", |
| 183 | +# insert a new-line before "else", |
| 184 | +# insert a new-line before "finally", |
| 185 | +# insert a new-line before members in anonymous-types, |
| 186 | +# insert a new-line before members in object-initializers, |
| 187 | +# insert a new-line before all open braces except anonymous methods, anonymous types, lambdas, and object collections and |
| 188 | +# insert a new-line within query expression clauses |
| 189 | +############################################################################### |
| 190 | +[*.cs] |
| 191 | +csharp_new_line_before_catch = true |
| 192 | +csharp_new_line_before_else = true |
| 193 | +csharp_new_line_before_finally = true |
| 194 | + |
| 195 | +csharp_new_line_before_members_in_anonymous_types = true |
| 196 | +csharp_new_line_before_members_in_object_initializers = true |
| 197 | + |
| 198 | +csharp_new_line_before_open_brace = accessors, control_blocks, events, indexers, local_functions, methods, properties, types |
| 199 | + |
| 200 | +csharp_new_line_within_query_expression_clauses = true |
| 201 | + |
| 202 | +############################################################################### |
| 203 | +# Set csharp preserve options to: |
| 204 | +# preserve single-line blocks, and |
| 205 | +# not preserve single-line statements |
| 206 | +############################################################################### |
| 207 | +[*.cs] |
| 208 | +csharp_preserve_single_line_blocks = true |
| 209 | +csharp_preserve_single_line_statements = false |
| 210 | + |
| 211 | +############################################################################### |
| 212 | +# Set csharp space options to: |
| 213 | +# not preserve single-line blocks, |
| 214 | +# not preserve single-line statements, |
| 215 | +# remove any space after a cast, |
| 216 | +# add a space after the colon in an inheritance clause, |
| 217 | +# add a space after a comma, |
| 218 | +# remove any space after a dot, |
| 219 | +# add a space after keywords in control flow statements, |
| 220 | +# add a space after a semicolon in a "for" statement, |
| 221 | +# add a space before and after binary operators, |
| 222 | +# remove space around declaration statements, |
| 223 | +# add a space before the colon in an inheritance clause, |
| 224 | +# remove any space before a comma, |
| 225 | +# remove any space before a dot, |
| 226 | +# remove any space before an open square-bracket, |
| 227 | +# remove any space before a semicolon in a "for" statement, |
| 228 | +# remove any space between empty square-brackets, |
| 229 | +# remove any space between a method call's empty parameter list parenthesis, |
| 230 | +# remove any space between a method call's name and its opening parenthesis, |
| 231 | +# remove any space between a method call's parameter list parenthesis, |
| 232 | +# remove any space between a method declaration's empty parameter list parenthesis, |
| 233 | +# remove any space between a method declaration's name and its openening parenthesis, |
| 234 | +# remove any space between a method declaration's parameter list parenthesis, |
| 235 | +# remove any space between parentheses, and |
| 236 | +# remove any space between square brackets |
| 237 | +############################################################################### |
| 238 | +[*.cs] |
| 239 | +csharp_space_after_cast = false |
| 240 | +csharp_space_after_colon_in_inheritance_clause = true |
| 241 | +csharp_space_after_comma = true |
| 242 | +csharp_space_after_dot = false |
| 243 | +csharp_space_after_keywords_in_control_flow_statements = true |
| 244 | +csharp_space_after_semicolon_in_for_statement = true |
| 245 | + |
| 246 | +csharp_space_around_binary_operators = before_and_after |
| 247 | +csharp_space_around_declaration_statements = do_not_ignore |
| 248 | + |
| 249 | +csharp_space_before_colon_in_inheritance_clause = true |
| 250 | +csharp_space_before_comma = false |
| 251 | +csharp_space_before_dot = false |
| 252 | +csharp_space_before_open_square_brackets = false |
| 253 | +csharp_space_before_semicolon_in_for_statement = false |
| 254 | + |
| 255 | +csharp_space_between_empty_square_brackets = false |
| 256 | +csharp_space_between_method_call_empty_parameter_list_parentheses = false |
| 257 | +csharp_space_between_method_call_name_and_opening_parenthesis = false |
| 258 | +csharp_space_between_method_call_parameter_list_parentheses = false |
| 259 | +csharp_space_between_method_declaration_empty_parameter_list_parentheses = false |
| 260 | +csharp_space_between_method_declaration_name_and_open_parenthesis = false |
| 261 | +csharp_space_between_method_declaration_parameter_list_parentheses = false |
| 262 | +csharp_space_between_parentheses = false |
| 263 | +csharp_space_between_square_brackets = false |
| 264 | + |
| 265 | +############################################################################### |
| 266 | +# Set csharp style options to: |
| 267 | +# suggest braces, |
| 268 | +# suggest inferred anonymous types, |
| 269 | +# suggest inferred tuple names, |
| 270 | +# suggest simple default expressions, |
| 271 | +# suggest a preferred modifier order, |
| 272 | +# suggest conditional delegate calls, |
| 273 | +# don't suggest expression-bodied accessors, |
| 274 | +# don't suggest expression-bodied indexers, |
| 275 | +# don't suggest expression-bodied constructors, |
| 276 | +# don't suggest expression-bodied methods, |
| 277 | +# don't suggest expression-bodied operators, |
| 278 | +# don't suggest expression-bodied properties, |
| 279 | +# suggest inlined variable declarations, |
| 280 | +# suggest local over anonymous functions, |
| 281 | +# suggest pattern-matching over "as" with "null" check, |
| 282 | +# suggest pattern-matching over "is" with "cast" check, |
| 283 | +# suggest throw expressions, |
| 284 | +# suggest var for built-in types, |
| 285 | +# suggest var when the type is not apparent, and |
| 286 | +# suggest var when the type is apparent |
| 287 | +############################################################################### |
| 288 | +[*.cs] |
| 289 | +csharp_prefer_braces = true:suggestion |
| 290 | +csharp_prefer_inferred_anonymous_type_member_names = true:suggestion |
| 291 | +csharp_prefer_inferred_tuple_names = true:suggestion |
| 292 | +csharp_prefer_simple_default_expression = true:suggestion |
| 293 | +csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion |
| 294 | + |
| 295 | +csharp_style_conditional_delegate_call = true:suggestion |
| 296 | + |
| 297 | +csharp_style_expression_bodied_accessors = false:suggestion |
| 298 | +csharp_style_expression_bodied_constructors = false:suggestion |
| 299 | +csharp_style_expression_bodied_indexers = false:suggestion |
| 300 | +csharp_style_expression_bodied_methods = false:suggestion |
| 301 | +csharp_style_expression_bodied_operators = false:suggestion |
| 302 | +csharp_style_expression_bodied_properties = false:suggestion |
| 303 | + |
| 304 | +csharp_style_inlined_variable_declaration = true:suggestion |
| 305 | + |
| 306 | +csharp_style_pattern_local_over_anonymous_function = true:suggestion |
| 307 | +csharp_style_pattern_matching_over_as_with_null_check = true:suggestion |
| 308 | +csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion |
| 309 | + |
| 310 | +csharp_style_throw_expression = true:suggestion |
| 311 | + |
| 312 | +csharp_style_var_for_built_in_types = true:suggestion |
| 313 | +csharp_style_var_elsewhere = true:suggestion |
| 314 | +csharp_style_var_when_type_is_apparent = true:suggestion |
0 commit comments