|
| 1 | +# Rules in this file were initially inferred by Visual Studio IntelliCode from the C:\AKKA-Workspace\Repos\Akka-TechCompetition-2021 codebase based on best match to current usage at 26-Mar-21 |
| 2 | +# You can modify the rules from these initially generated values to suit your own policies |
| 3 | +# You can learn more about editorconfig here: https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference |
| 4 | +[*.cs] |
| 5 | + |
| 6 | + |
| 7 | +#Core editorconfig formatting - indentation |
| 8 | + |
| 9 | +# Indentation and spacing |
| 10 | +indent_style = space |
| 11 | +indent_size = 2 |
| 12 | + |
| 13 | +#Formatting - new line options |
| 14 | +csharp_new_line_before_open_brace = all |
| 15 | +#place else statements on a new line |
| 16 | +csharp_new_line_before_else = true |
| 17 | +#require members of anonymous types to be on the same line |
| 18 | +csharp_new_line_before_members_in_anonymous_types = true |
| 19 | +#require members of object intializers to be on separate lines |
| 20 | +csharp_new_line_before_members_in_object_initializers = true |
| 21 | +#require braces to be on a new line for methods, control_blocks, and types (also known as "Allman" style) |
| 22 | +csharp_new_line_before_open_brace = all |
| 23 | + |
| 24 | +#Formatting - organize using options |
| 25 | + |
| 26 | +#sort System.* using directives alphabetically, and place them before other usings |
| 27 | +dotnet_sort_system_directives_first = true |
| 28 | + |
| 29 | +#Formatting - spacing options |
| 30 | + |
| 31 | +#require NO space between a cast and the value |
| 32 | +csharp_space_after_cast = false |
| 33 | +#require a space before the colon for bases or interfaces in a type declaration |
| 34 | +csharp_space_after_colon_in_inheritance_clause = true |
| 35 | +#require a space after a keyword in a control flow statement such as a for loop |
| 36 | +csharp_space_after_keywords_in_control_flow_statements = true |
| 37 | +#require a space before the colon for bases or interfaces in a type declaration |
| 38 | +csharp_space_before_colon_in_inheritance_clause = true |
| 39 | +#remove space within empty argument list parentheses |
| 40 | +csharp_space_between_method_call_empty_parameter_list_parentheses = false |
| 41 | +#remove space between method call name and opening parenthesis |
| 42 | +csharp_space_between_method_call_name_and_opening_parenthesis = false |
| 43 | +#do not place space characters after the opening parenthesis and before the closing parenthesis of a method call |
| 44 | +csharp_space_between_method_call_parameter_list_parentheses = false |
| 45 | +#remove space within empty parameter list parentheses for a method declaration |
| 46 | +csharp_space_between_method_declaration_empty_parameter_list_parentheses = false |
| 47 | +#place a space character after the opening parenthesis and before the closing parenthesis of a method declaration parameter list. |
| 48 | +csharp_space_between_method_declaration_parameter_list_parentheses = false |
| 49 | + |
| 50 | +#Formatting - wrapping options |
| 51 | + |
| 52 | +#leave code block on single line |
| 53 | +csharp_preserve_single_line_blocks = true |
| 54 | + |
| 55 | +#Style - Code block preferences |
| 56 | + |
| 57 | +#prefer curly braces even for one line of code |
| 58 | +csharp_prefer_braces = true:suggestion |
| 59 | + |
| 60 | +#Style - expression bodied member options |
| 61 | + |
| 62 | +#prefer block bodies for constructors |
| 63 | +csharp_style_expression_bodied_constructors = false:suggestion |
| 64 | +#prefer block bodies for methods |
| 65 | +csharp_style_expression_bodied_methods = false:suggestion |
| 66 | + |
| 67 | +#Style - expression level options |
| 68 | + |
| 69 | +#prefer the language keyword for member access expressions, instead of the type name, for types that have a keyword to represent them |
| 70 | +dotnet_style_predefined_type_for_member_access = true:suggestion |
| 71 | + |
| 72 | +#Style - Expression-level preferences |
| 73 | + |
| 74 | +#prefer objects to be initialized using object initializers when possible |
| 75 | +dotnet_style_object_initializer = true:suggestion |
| 76 | +#prefer inferred anonymous type member names |
| 77 | +dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion |
| 78 | + |
| 79 | +#Style - implicit and explicit types |
| 80 | + |
| 81 | +#prefer var over explicit type in all cases, unless overridden by another code style rule |
| 82 | +csharp_style_var_elsewhere = true:suggestion |
| 83 | +#prefer explicit type over var to declare variables with built-in system types such as int |
| 84 | +csharp_style_var_for_built_in_types = false:suggestion |
| 85 | +#prefer var when the type is already mentioned on the right-hand side of a declaration expression |
| 86 | +csharp_style_var_when_type_is_apparent = true:suggestion |
| 87 | + |
| 88 | +#Style - language keyword and framework type options |
| 89 | + |
| 90 | +#prefer the language keyword for local variables, method parameters, and class members, instead of the type name, for types that have a keyword to represent them |
| 91 | +dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion |
| 92 | + |
| 93 | +#Style - modifier options |
| 94 | + |
| 95 | +#prefer accessibility modifiers to be declared except for public interface members. This will currently not differ from always and will act as future proofing for if C# adds default interface methods. |
| 96 | +dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion |
| 97 | + |
| 98 | +#Style - Modifier preferences |
| 99 | + |
| 100 | +#when this rule is set to a list of modifiers, prefer the specified ordering. |
| 101 | +csharp_preferred_modifier_order = public,private,protected,static,readonly,override:suggestion |
| 102 | + |
| 103 | +# IDE0003: Remove qualification |
| 104 | +dotnet_diagnostic.IDE0003.severity = none |
0 commit comments