|
| 1 | +# Rules in this file were initially inferred by Visual Studio IntelliCode from the C:\Users\Mikhail\Documents\GitHub\Security-Database-Sync codebase based on best match to current usage at 5/14/2021 |
| 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 | +#use soft tabs (spaces) for indentation |
| 10 | +indent_style = space |
| 11 | + |
| 12 | +#Formatting - new line options |
| 13 | + |
| 14 | +#place catch statements on a new line |
| 15 | +csharp_new_line_before_catch = true |
| 16 | +#require members of object intializers to be on separate lines |
| 17 | +csharp_new_line_before_members_in_object_initializers = true |
| 18 | +#require braces to be on a new line for object_collection_array_initializers, methods, types, and control_blocks (also known as "Allman" style) |
| 19 | +csharp_new_line_before_open_brace = object_collection_array_initializers, methods, types, control_blocks |
| 20 | + |
| 21 | +#Formatting - organize using options |
| 22 | + |
| 23 | +#do not place System.* using directives before other using directives |
| 24 | +dotnet_sort_system_directives_first = false |
| 25 | + |
| 26 | +#Formatting - spacing options |
| 27 | + |
| 28 | +#require a space before the colon for bases or interfaces in a type declaration |
| 29 | +csharp_space_after_colon_in_inheritance_clause = true |
| 30 | +#require a space after a keyword in a control flow statement such as a for loop |
| 31 | +csharp_space_after_keywords_in_control_flow_statements = true |
| 32 | +#require a space before the colon for bases or interfaces in a type declaration |
| 33 | +csharp_space_before_colon_in_inheritance_clause = true |
| 34 | +#remove space within empty argument list parentheses |
| 35 | +csharp_space_between_method_call_empty_parameter_list_parentheses = false |
| 36 | +#remove space between method call name and opening parenthesis |
| 37 | +csharp_space_between_method_call_name_and_opening_parenthesis = false |
| 38 | +#do not place space characters after the opening parenthesis and before the closing parenthesis of a method call |
| 39 | +csharp_space_between_method_call_parameter_list_parentheses = false |
| 40 | +#remove space within empty parameter list parentheses for a method declaration |
| 41 | +csharp_space_between_method_declaration_empty_parameter_list_parentheses = false |
| 42 | +#place a space character after the opening parenthesis and before the closing parenthesis of a method declaration parameter list. |
| 43 | +csharp_space_between_method_declaration_parameter_list_parentheses = false |
| 44 | + |
| 45 | +#Formatting - wrapping options |
| 46 | + |
| 47 | +#leave code block on single line |
| 48 | +csharp_preserve_single_line_blocks = true |
| 49 | + |
| 50 | +#Style - Code block preferences |
| 51 | + |
| 52 | +#prefer curly braces even for one line of code |
| 53 | +csharp_prefer_braces = true:suggestion |
| 54 | + |
| 55 | +#Style - expression bodied member options |
| 56 | + |
| 57 | +#prefer block bodies for constructors |
| 58 | +csharp_style_expression_bodied_constructors = false:suggestion |
| 59 | +#prefer block bodies for methods |
| 60 | +csharp_style_expression_bodied_methods = false:suggestion |
| 61 | + |
| 62 | +#Style - expression level options |
| 63 | + |
| 64 | +#prefer the language keyword for member access expressions, instead of the type name, for types that have a keyword to represent them |
| 65 | +dotnet_style_predefined_type_for_member_access = true:suggestion |
| 66 | + |
| 67 | +#Style - Expression-level preferences |
| 68 | + |
| 69 | +#prefer objects to be initialized using object initializers when possible |
| 70 | +dotnet_style_object_initializer = true:suggestion |
| 71 | + |
| 72 | +#Style - implicit and explicit types |
| 73 | + |
| 74 | +#prefer var over explicit type in all cases, unless overridden by another code style rule |
| 75 | +csharp_style_var_elsewhere = true:suggestion |
| 76 | +#prefer explicit type over var when the type is already mentioned on the right-hand side of a declaration |
| 77 | +csharp_style_var_when_type_is_apparent = false:suggestion |
| 78 | + |
| 79 | +#Style - language keyword and framework type options |
| 80 | + |
| 81 | +#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 |
| 82 | +dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion |
| 83 | + |
| 84 | +#Style - Miscellaneous preferences |
| 85 | + |
| 86 | +#prefer local functions over anonymous functions |
| 87 | +csharp_style_pattern_local_over_anonymous_function = true:suggestion |
| 88 | + |
| 89 | +#Style - modifier options |
| 90 | + |
| 91 | +#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. |
| 92 | +dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion |
| 93 | + |
| 94 | +#Style - Modifier preferences |
| 95 | + |
| 96 | +#when this rule is set to a list of modifiers, prefer the specified ordering. |
| 97 | +csharp_preferred_modifier_order = public,private,internal,protected,async,readonly,static,override:suggestion |
| 98 | + |
| 99 | +#Style - qualification options |
| 100 | + |
| 101 | +#prefer fields not to be prefaced with this. or Me. in Visual Basic |
| 102 | +dotnet_style_qualification_for_field = false:suggestion |
| 103 | +#prefer methods not to be prefaced with this. or Me. in Visual Basic |
| 104 | +dotnet_style_qualification_for_method = false:suggestion |
0 commit comments