|
| 1 | +# Remove the line below if you want to inherit .editorconfig settings from higher directories |
| 2 | +root = true |
| 3 | + |
| 4 | +# Visual Basic files |
| 5 | +[*.vb] |
| 6 | + |
| 7 | +#### Core EditorConfig Options #### |
| 8 | + |
| 9 | +# Indentation and spacing |
| 10 | +indent_size = 2 |
| 11 | +indent_style = space |
| 12 | +tab_width = 2 |
| 13 | + |
| 14 | +# New line preferences |
| 15 | +end_of_line = crlf |
| 16 | +insert_final_newline = false |
| 17 | + |
| 18 | +#### .NET Coding Conventions #### |
| 19 | + |
| 20 | +# Organize usings |
| 21 | +dotnet_separate_import_directive_groups = false |
| 22 | +dotnet_sort_system_directives_first = true |
| 23 | +file_header_template = unset |
| 24 | + |
| 25 | +# this. and Me. preferences |
| 26 | +dotnet_style_qualification_for_event = false:suggestion |
| 27 | +dotnet_style_qualification_for_field = false:silent |
| 28 | +dotnet_style_qualification_for_method = false:suggestion |
| 29 | +dotnet_style_qualification_for_property = false:suggestion |
| 30 | + |
| 31 | +# Language keywords vs BCL types preferences |
| 32 | +dotnet_style_predefined_type_for_locals_parameters_members = true:silent |
| 33 | +dotnet_style_predefined_type_for_member_access = true:silent |
| 34 | + |
| 35 | +# Parentheses preferences |
| 36 | +dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent |
| 37 | +dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent |
| 38 | +dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent |
| 39 | +dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent |
| 40 | + |
| 41 | +# Modifier preferences |
| 42 | +dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent |
| 43 | + |
| 44 | +# Expression-level preferences |
| 45 | +dotnet_style_coalesce_expression = true:suggestion |
| 46 | +dotnet_style_collection_initializer = true:suggestion |
| 47 | +dotnet_style_explicit_tuple_names = true:suggestion |
| 48 | +dotnet_style_null_propagation = true:suggestion |
| 49 | +dotnet_style_object_initializer = true:suggestion |
| 50 | +dotnet_style_operator_placement_when_wrapping = beginning_of_line |
| 51 | +dotnet_style_prefer_auto_properties = true:silent |
| 52 | +dotnet_style_prefer_compound_assignment = true:suggestion |
| 53 | +dotnet_style_prefer_conditional_expression_over_assignment = true:silent |
| 54 | +dotnet_style_prefer_conditional_expression_over_return = true:silent |
| 55 | +dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion |
| 56 | +dotnet_style_prefer_inferred_tuple_names = true:suggestion |
| 57 | +dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion |
| 58 | +dotnet_style_prefer_simplified_boolean_expressions = true:suggestion |
| 59 | +dotnet_style_prefer_simplified_interpolation = true:suggestion |
| 60 | + |
| 61 | +# Field preferences |
| 62 | +dotnet_style_readonly_field = true:suggestion |
| 63 | + |
| 64 | +# Parameter preferences |
| 65 | +dotnet_code_quality_unused_parameters = all:suggestion |
| 66 | + |
| 67 | +# Suppression preferences |
| 68 | +dotnet_remove_unnecessary_suppression_exclusions = none |
| 69 | + |
| 70 | +#### VB Coding Conventions #### |
| 71 | + |
| 72 | +# Modifier preferences |
| 73 | +visual_basic_preferred_modifier_order = partial,default,private,protected,public,friend,notoverridable,overridable,mustoverride,overloads,overrides,mustinherit,notinheritable,static,shared,shadows,readonly,writeonly,dim,const,withevents,widening,narrowing,custom,async,iterator:silent |
| 74 | + |
| 75 | +# Expression-level preferences |
| 76 | +visual_basic_style_prefer_isnot_expression = true:suggestion |
| 77 | +visual_basic_style_unused_value_assignment_preference = unused_local_variable:suggestion |
| 78 | +visual_basic_style_unused_value_expression_statement_preference = unused_local_variable:silent |
| 79 | + |
| 80 | +#### Naming styles #### |
| 81 | + |
| 82 | +# Naming rules |
| 83 | + |
| 84 | +dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion |
| 85 | +dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface |
| 86 | +dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i |
| 87 | + |
| 88 | +dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion |
| 89 | +dotnet_naming_rule.types_should_be_pascal_case.symbols = types |
| 90 | +dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case |
| 91 | + |
| 92 | +dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion |
| 93 | +dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members |
| 94 | +dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case |
| 95 | + |
| 96 | +# Symbol specifications |
| 97 | + |
| 98 | +dotnet_naming_symbols.interface.applicable_kinds = interface |
| 99 | +dotnet_naming_symbols.interface.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected |
| 100 | +dotnet_naming_symbols.interface.required_modifiers = |
| 101 | + |
| 102 | +dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum |
| 103 | +dotnet_naming_symbols.types.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected |
| 104 | +dotnet_naming_symbols.types.required_modifiers = |
| 105 | + |
| 106 | +dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method |
| 107 | +dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected |
| 108 | +dotnet_naming_symbols.non_field_members.required_modifiers = |
| 109 | + |
| 110 | +# Naming styles |
| 111 | + |
| 112 | +dotnet_naming_style.pascal_case.required_prefix = |
| 113 | +dotnet_naming_style.pascal_case.required_suffix = |
| 114 | +dotnet_naming_style.pascal_case.word_separator = |
| 115 | +dotnet_naming_style.pascal_case.capitalization = pascal_case |
| 116 | + |
| 117 | +dotnet_naming_style.begins_with_i.required_prefix = I |
| 118 | +dotnet_naming_style.begins_with_i.required_suffix = |
| 119 | +dotnet_naming_style.begins_with_i.word_separator = |
| 120 | +dotnet_naming_style.begins_with_i.capitalization = pascal_case |
0 commit comments