1
+
2
+ [* .{cs,vb} ]
3
+ # ### Naming styles ####
4
+
5
+ # Naming rules
6
+
7
+ dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
8
+ dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
9
+ dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
10
+
11
+ dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
12
+ dotnet_naming_rule.types_should_be_pascal_case.symbols = types
13
+ dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
14
+
15
+ dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
16
+ dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
17
+ dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
18
+
19
+ # Symbol specifications
20
+
21
+ dotnet_naming_symbols.interface.applicable_kinds = interface
22
+ dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
23
+ dotnet_naming_symbols.interface.required_modifiers =
24
+
25
+ dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
26
+ dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
27
+ dotnet_naming_symbols.types.required_modifiers =
28
+
29
+ dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
30
+ dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
31
+ dotnet_naming_symbols.non_field_members.required_modifiers =
32
+
33
+ # Naming styles
34
+
35
+ dotnet_naming_style.begins_with_i.required_prefix = I
36
+ dotnet_naming_style.begins_with_i.required_suffix =
37
+ dotnet_naming_style.begins_with_i.word_separator =
38
+ dotnet_naming_style.begins_with_i.capitalization = pascal_case
39
+
40
+ dotnet_naming_style.pascal_case.required_prefix =
41
+ dotnet_naming_style.pascal_case.required_suffix =
42
+ dotnet_naming_style.pascal_case.word_separator =
43
+ dotnet_naming_style.pascal_case.capitalization = pascal_case
44
+
45
+ dotnet_naming_style.pascal_case.required_prefix =
46
+ dotnet_naming_style.pascal_case.required_suffix =
47
+ dotnet_naming_style.pascal_case.word_separator =
48
+ dotnet_naming_style.pascal_case.capitalization = pascal_case
49
+ dotnet_style_operator_placement_when_wrapping = beginning_of_line
50
+ tab_width = 4
51
+ indent_size = 4
52
+ end_of_line = crlf
53
+ dotnet_style_coalesce_expression = true :suggestion
54
+ dotnet_style_null_propagation = true :suggestion
55
+ dotnet_style_prefer_is_null_check_over_reference_equality_method = true :suggestion
56
+ dotnet_style_prefer_auto_properties = true :error
57
+ dotnet_style_object_initializer = true :suggestion
58
+ dotnet_style_collection_initializer = true :suggestion
59
+ indent_style = space
60
+ dotnet_style_namespace_match_folder = true :suggestion
61
+ dotnet_style_prefer_simplified_boolean_expressions = true :suggestion
62
+ dotnet_style_prefer_conditional_expression_over_assignment = true :silent
63
+ dotnet_style_prefer_conditional_expression_over_return = true :silent
64
+ dotnet_style_explicit_tuple_names = true :suggestion
65
+ dotnet_style_prefer_inferred_tuple_names = true :suggestion
66
+ dotnet_style_prefer_inferred_anonymous_type_member_names = true :suggestion
67
+ dotnet_style_prefer_compound_assignment = true :suggestion
68
+ dotnet_style_prefer_simplified_interpolation = true :warning
69
+ dotnet_style_readonly_field = true :suggestion
70
+ dotnet_style_predefined_type_for_locals_parameters_members = true :silent
71
+ dotnet_style_predefined_type_for_member_access = true :silent
72
+ dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
73
+ dotnet_style_allow_multiple_blank_lines_experimental = true :silent
74
+ dotnet_style_allow_statement_immediately_after_block_experimental = true :silent
75
+ dotnet_code_quality_unused_parameters = all:suggestion
76
+ dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
77
+ dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
78
+ dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
79
+ dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
80
+ dotnet_style_qualification_for_field = false :silent
81
+ dotnet_style_qualification_for_property = false :silent
82
+ dotnet_style_qualification_for_method = false :silent
83
+ dotnet_style_qualification_for_event = false :silent
84
+
85
+ [* .cs ]
86
+ csharp_indent_labels = one_less_than_current
87
+ csharp_using_directive_placement = outside_namespace:silent
88
+ csharp_prefer_simple_using_statement = true :suggestion
89
+ csharp_prefer_braces = true :silent
90
+ csharp_style_namespace_declarations = file_scoped:error
91
+ csharp_style_prefer_method_group_conversion = true :silent
92
+ csharp_style_prefer_top_level_statements = true :silent
93
+ csharp_style_expression_bodied_methods = false :silent
94
+ csharp_style_expression_bodied_constructors = false :silent
95
+ csharp_style_expression_bodied_operators = false :silent
96
+ csharp_style_expression_bodied_properties = true :silent
97
+ csharp_style_expression_bodied_indexers = true :silent
98
+ csharp_style_expression_bodied_accessors = true :silent
99
+ csharp_style_expression_bodied_lambdas = true :silent
100
+ csharp_style_expression_bodied_local_functions = false :silent
101
+ csharp_space_around_binary_operators = before_and_after
102
+ csharp_style_throw_expression = true :suggestion
103
+ csharp_style_prefer_null_check_over_type_check = true :suggestion
104
+ csharp_prefer_simple_default_expression = true :suggestion
105
+ csharp_style_prefer_local_over_anonymous_function = true :suggestion
106
+ csharp_style_prefer_index_operator = true :suggestion
107
+ csharp_style_prefer_range_operator = true :suggestion
108
+ csharp_style_implicit_object_creation_when_type_is_apparent = true :suggestion
109
+ csharp_style_prefer_tuple_swap = true :suggestion
110
+ csharp_style_prefer_utf8_string_literals = true :suggestion
111
+ csharp_style_inlined_variable_declaration = true :suggestion
112
+ csharp_style_deconstructed_variable_declaration = true :suggestion
113
+ csharp_style_unused_value_assignment_preference = discard_variable:suggestion
114
+ csharp_style_unused_value_expression_statement_preference = discard_variable:silent
115
+ csharp_prefer_static_local_function = true :suggestion
116
+ csharp_style_prefer_readonly_struct = true :suggestion
117
+ csharp_style_allow_embedded_statements_on_same_line_experimental = true :silent
118
+ csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true :silent
119
+ csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true :silent
120
+ csharp_style_conditional_delegate_call = true :suggestion
121
+ csharp_style_prefer_switch_expression = true :error
122
+ csharp_style_prefer_pattern_matching = true :suggestion
123
+ csharp_style_pattern_matching_over_is_with_cast_check = true :suggestion
124
+ csharp_style_pattern_matching_over_as_with_null_check = true :suggestion
125
+ csharp_style_prefer_not_pattern = true :suggestion
126
+ csharp_style_prefer_extended_property_pattern = true :suggestion
127
+ csharp_style_var_for_built_in_types = true :warning
128
+ csharp_style_var_when_type_is_apparent = true :warning
129
+ csharp_style_var_elsewhere = true :warning
130
+ csharp_new_line_before_open_brace = types,anonymous_types,object_collection_array_initializers
131
+ csharp_new_line_before_else = false
132
+ csharp_new_line_before_catch = false
133
+ csharp_new_line_before_finally = false
134
+ csharp_style_prefer_readonly_struct_member = true :suggestion
135
+ csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = true :silent
136
+ csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = true :silent
137
+
138
+ [* .csproj ]
139
+ indent_style = space
140
+ indent_size = 4
0 commit comments