@@ -6,6 +6,44 @@ trim_trailing_whitespace = true
6
6
insert_final_newline = true
7
7
indent_style = space
8
8
indent_size = 4
9
+ dotnet_style_operator_placement_when_wrapping = beginning_of_line
10
+ tab_width = 4
11
+ dotnet_style_coalesce_expression = true :suggestion
12
+ dotnet_style_null_propagation = true :suggestion
13
+ dotnet_style_prefer_is_null_check_over_reference_equality_method = true :suggestion
14
+ dotnet_style_prefer_auto_properties = true :suggestion
15
+ dotnet_style_object_initializer = true :suggestion
16
+ dotnet_style_collection_initializer = true :suggestion
17
+ dotnet_style_prefer_simplified_boolean_expressions = true :suggestion
18
+ dotnet_style_prefer_conditional_expression_over_assignment = true :silent
19
+ dotnet_style_prefer_conditional_expression_over_return = true :silent
20
+ dotnet_style_explicit_tuple_names = true :suggestion
21
+ dotnet_style_prefer_inferred_tuple_names = true :suggestion
22
+ dotnet_style_prefer_inferred_anonymous_type_member_names = true :suggestion
23
+ dotnet_style_prefer_compound_assignment = true :suggestion
24
+ dotnet_style_prefer_simplified_interpolation = true :suggestion
25
+ dotnet_style_prefer_collection_expression = when_types_loosely_match:suggestion
26
+ dotnet_style_namespace_match_folder = true :suggestion
27
+ dotnet_style_readonly_field = true :suggestion
28
+ dotnet_style_predefined_type_for_locals_parameters_members = true :suggestion
29
+ dotnet_style_predefined_type_for_member_access = true :suggestion
30
+ dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
31
+ dotnet_style_allow_multiple_blank_lines_experimental = false :error
32
+ dotnet_style_allow_statement_immediately_after_block_experimental = true :silent
33
+ dotnet_code_quality_unused_parameters = non_public:suggestion
34
+ dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
35
+ dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
36
+ dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
37
+ dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
38
+ dotnet_style_qualification_for_field = false :suggestion
39
+ dotnet_style_qualification_for_property = false :suggestion
40
+ dotnet_style_qualification_for_method = false :suggestion
41
+ dotnet_style_qualification_for_event = false :suggestion
42
+ dotnet_diagnostic.RS0016.severity = error
43
+ dotnet_diagnostic.RS0017.severity = error
44
+ dotnet_diagnostic.RS0024.severity = error
45
+ dotnet_diagnostic.RS0025.severity = error
46
+ dotnet_diagnostic.RS0036.severity = warning
9
47
10
48
[* .cs ]
11
49
# New line preferences
@@ -45,15 +83,15 @@ dotnet_style_predefined_type_for_member_access = true:suggestion
45
83
# name all constant fields using PascalCase
46
84
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
47
85
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
48
- dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
86
+ dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
49
87
dotnet_naming_symbols.constant_fields.applicable_kinds = field
50
88
dotnet_naming_symbols.constant_fields.required_modifiers = const
51
89
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
52
90
53
91
# static fields should have s_ prefix
54
92
dotnet_naming_rule.static_fields_should_have_prefix.severity = warning
55
93
dotnet_naming_rule.static_fields_should_have_prefix.symbols = static_fields
56
- dotnet_naming_rule.static_fields_should_have_prefix.style = static_prefix_style
94
+ dotnet_naming_rule.static_fields_should_have_prefix.style = static_prefix_style
57
95
dotnet_naming_symbols.static_fields.applicable_kinds = field
58
96
dotnet_naming_symbols.static_fields.required_modifiers = static
59
97
dotnet_naming_symbols.static_fields.applicable_accessibilities = internal, private, private_protected, protected
@@ -63,7 +101,7 @@ dotnet_naming_style.static_prefix_style.capitalization = camel_case
63
101
# internal and private fields should be _camelCase
64
102
dotnet_naming_rule.camel_case_for_private_internal_fields.severity = warning
65
103
dotnet_naming_rule.camel_case_for_private_internal_fields.symbols = private_internal_fields
66
- dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style
104
+ dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style
67
105
dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
68
106
dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = internal, private, private_protected, protected
69
107
dotnet_naming_style.camel_case_underscore_style.required_prefix = _
@@ -98,14 +136,14 @@ dotnet_style_prefer_conditional_expression_over_return = true:refactoring
98
136
csharp_prefer_simple_default_expression = true :suggestion
99
137
100
138
# Expression-bodied members
101
- csharp_style_expression_bodied_methods = true:refactoring
102
- csharp_style_expression_bodied_constructors = true:refactoring
103
- csharp_style_expression_bodied_operators = true:refactoring
104
- csharp_style_expression_bodied_properties = true:refactoring
105
- csharp_style_expression_bodied_indexers = true:refactoring
106
- csharp_style_expression_bodied_accessors = true:refactoring
107
- csharp_style_expression_bodied_lambdas = true:refactoring
108
- csharp_style_expression_bodied_local_functions = true:refactoring
139
+ csharp_style_expression_bodied_methods = true :silent
140
+ csharp_style_expression_bodied_constructors = true :silent
141
+ csharp_style_expression_bodied_operators = true :silent
142
+ csharp_style_expression_bodied_properties = true :silent
143
+ csharp_style_expression_bodied_indexers = true :silent
144
+ csharp_style_expression_bodied_accessors = true :silent
145
+ csharp_style_expression_bodied_lambdas = true :silent
146
+ csharp_style_expression_bodied_local_functions = true :silent
109
147
110
148
# Pattern matching
111
149
csharp_style_pattern_matching_over_is_with_cast_check = true :suggestion
@@ -171,6 +209,28 @@ dotnet_diagnostic.RS0041.severity = none
171
209
dotnet_diagnostic.RS0051.severity = error
172
210
173
211
dotnet_diagnostic.CA2007.severity = error
212
+ csharp_style_namespace_declarations = block_scoped:silent
213
+ csharp_style_prefer_method_group_conversion = true :silent
214
+ csharp_style_prefer_top_level_statements = true :silent
215
+ csharp_style_prefer_primary_constructors = true :suggestion
216
+ csharp_style_prefer_null_check_over_type_check = true :suggestion
217
+ csharp_style_prefer_local_over_anonymous_function = true :suggestion
218
+ csharp_style_implicit_object_creation_when_type_is_apparent = true :suggestion
219
+ csharp_style_prefer_tuple_swap = true :suggestion
220
+ csharp_style_prefer_utf8_string_literals = true :suggestion
221
+ csharp_style_deconstructed_variable_declaration = true :suggestion
222
+ csharp_style_unused_value_assignment_preference = discard_variable:suggestion
223
+ csharp_prefer_static_anonymous_function = true :suggestion
224
+ csharp_style_prefer_readonly_struct = true :suggestion
225
+ csharp_style_prefer_readonly_struct_member = true :suggestion
226
+ csharp_style_allow_embedded_statements_on_same_line_experimental = true :silent
227
+ csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true :silent
228
+ csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true :silent
229
+ csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = true :silent
230
+ csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = true :silent
231
+ csharp_style_prefer_pattern_matching = true :silent
232
+ csharp_style_prefer_not_pattern = true :suggestion
233
+ csharp_style_prefer_extended_property_pattern = true :suggestion
174
234
175
235
# C++ Files
176
236
[* .{cpp,h,in} ]
0 commit comments