@@ -51,30 +51,30 @@ dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
51
51
# Symbol specifications
52
52
dotnet_naming_symbols.interface.applicable_kinds = interface
53
53
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
54
- dotnet_naming_symbols.interface.required_modifiers =
54
+ dotnet_naming_symbols.interface.required_modifiers =
55
55
56
56
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
57
57
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
58
- dotnet_naming_symbols.types.required_modifiers =
58
+ dotnet_naming_symbols.types.required_modifiers =
59
59
60
60
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
61
61
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
62
- dotnet_naming_symbols.non_field_members.required_modifiers =
62
+ dotnet_naming_symbols.non_field_members.required_modifiers =
63
63
64
64
# Naming styles
65
65
dotnet_naming_style.begins_with_i.required_prefix = I
66
- dotnet_naming_style.begins_with_i.required_suffix =
67
- dotnet_naming_style.begins_with_i.word_separator =
66
+ dotnet_naming_style.begins_with_i.required_suffix =
67
+ dotnet_naming_style.begins_with_i.word_separator =
68
68
dotnet_naming_style.begins_with_i.capitalization = pascal_case
69
69
70
- dotnet_naming_style.pascal_case.required_prefix =
71
- dotnet_naming_style.pascal_case.required_suffix =
72
- dotnet_naming_style.pascal_case.word_separator =
70
+ dotnet_naming_style.pascal_case.required_prefix =
71
+ dotnet_naming_style.pascal_case.required_suffix =
72
+ dotnet_naming_style.pascal_case.word_separator =
73
73
dotnet_naming_style.pascal_case.capitalization = pascal_case
74
74
75
- dotnet_naming_style.pascal_case.required_prefix =
76
- dotnet_naming_style.pascal_case.required_suffix =
77
- dotnet_naming_style.pascal_case.word_separator =
75
+ dotnet_naming_style.pascal_case.required_prefix =
76
+ dotnet_naming_style.pascal_case.required_suffix =
77
+ dotnet_naming_style.pascal_case.word_separator =
78
78
dotnet_naming_style.pascal_case.capitalization = pascal_case
79
79
80
80
# Code style settings
@@ -92,9 +92,9 @@ dotnet_style_prefer_conditional_expression_over_assignment = true:silent
92
92
dotnet_style_prefer_conditional_expression_over_return = true :silent
93
93
dotnet_style_prefer_inferred_tuple_names = true :suggestion
94
94
dotnet_style_prefer_inferred_anonymous_type_member_names = true :suggestion
95
- dotnet_style_prefer_compound_assignment = true :none
95
+ dotnet_style_prefer_compound_assignment = true :suggestion
96
96
dotnet_style_prefer_simplified_interpolation = true :suggestion
97
- dotnet_style_namespace_match_folder = true :suggestion
97
+ dotnet_style_namespace_match_folder = true :none
98
98
dotnet_style_operator_placement_when_wrapping = beginning_of_line
99
99
100
100
# "This." and "Me." qualification. Use is preferred where true but the lightbulbs tend to show up in places
@@ -111,58 +111,50 @@ dotnet_diagnostic.CA1303.severity = none
111
111
# IDE0010: Add missing cases
112
112
dotnet_diagnostic.IDE0010.severity = none
113
113
114
- # IDE0032: Use auto property
115
- dotnet_diagnostic.IDE0032.severity = none
116
-
117
- # IDE0045: Convert to conditional expression
118
- dotnet_diagnostic.IDE0045.severity = none
119
-
120
- # IDE0046: Convert to conditional expression
121
- dotnet_diagnostic.IDE0046.severity = none
122
-
123
- # IDE0047: Remove unnecessary parentheses
124
- dotnet_diagnostic.IDE0047.severity = none
125
-
126
- # IDE0055: Fix formatting
127
- dotnet_diagnostic.IDE0055.severity = none
128
-
129
- # IDE0058: Expression value is never used
130
- dotnet_diagnostic.IDE0058.severity = none
131
-
132
114
# IDE1006: Naming Styles
133
115
dotnet_diagnostic.IDE1006.severity = none
134
116
135
117
# These are disabled as we're still targeting .NET Framework as well and I don't want a lot of conditional code
136
- # to suppress these.
118
+ # to suppress these or I'm not ready to use them just yet .
137
119
# IDE0056: Use index operator
138
120
dotnet_diagnostic.IDE0056.severity = none
139
121
140
122
# IDE0057: Use range operator
141
123
dotnet_diagnostic.IDE0057.severity = none
142
124
143
- # IDE0063: Use simple 'using' statement
144
- dotnet_diagnostic.IDE0063.severity = none
145
-
146
125
# IDE0066: Convert switch statement to expression
147
126
dotnet_diagnostic.IDE0066.severity = none
148
127
149
- # IDE0074: Use compound assignment
150
- dotnet_diagnostic.IDE0074.severity = none
151
-
152
- # IDE0090: Use 'new(...)'
153
- dotnet_diagnostic.IDE0090.severity = none
128
+ # CA1510: Use ArgumentNullException throw helper
129
+ dotnet_diagnostic.CA1510.severity = none
154
130
155
131
# CA1845: Use span-based 'string.Concat'
156
132
dotnet_diagnostic.CA1845.severity = none
157
133
158
134
# CA1846: Prefer 'AsSpan' over 'Substring'
159
135
dotnet_diagnostic.CA1846.severity = none
160
136
137
+ # CA1863: Use 'CompositeFormat'
138
+ dotnet_diagnostic.CA1863.severity = none
139
+
140
+ # CA1865: Use char overload
141
+ dotnet_diagnostic.CA1865.severity = none
142
+
143
+ # CA2249: Consider using 'string.Contains' instead of 'string.IndexOf'
144
+ dotnet_diagnostic.CA2249.severity = none
145
+
146
+ # SYSLIB1045: Convert to 'GeneratedRegexAttribute'.
147
+ dotnet_diagnostic.SYSLIB1045.severity = none
148
+
149
+ # SYSLIB1054: Use 'LibraryImportAttribute' instead of 'DllImportAttribute' to generate P/Invoke marshalling code at compile time
150
+ dotnet_diagnostic.SYSLIB1054.severity = none
151
+
161
152
[* .cs ]
162
153
# CSharp code style settings
163
154
csharp_style_var_elsewhere = false :none
164
155
csharp_style_var_for_built_in_types = false :none
165
156
csharp_style_var_when_type_is_apparent = false :none
157
+ csharp_style_prefer_primary_constructors = false :none
166
158
167
159
csharp_style_expression_bodied_accessors = true :suggestion
168
160
csharp_style_expression_bodied_constructors = false :none
@@ -187,15 +179,15 @@ csharp_style_prefer_null_check_over_type_check = true:suggestion
187
179
csharp_style_prefer_local_over_anonymous_function = true :suggestion
188
180
csharp_style_prefer_index_operator = true :suggestion
189
181
csharp_style_prefer_range_operator = true :suggestion
190
- csharp_style_implicit_object_creation_when_type_is_apparent = true :none
182
+ csharp_style_implicit_object_creation_when_type_is_apparent = true :suggestion
191
183
csharp_style_prefer_tuple_swap = true :suggestion
192
184
csharp_style_prefer_utf8_string_literals = true :suggestion
193
185
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
194
186
csharp_style_unused_value_expression_statement_preference = discard_variable:silent
195
187
196
188
csharp_prefer_braces = when_multiline:none
197
189
csharp_prefer_simple_default_expression = true :suggestion
198
- csharp_prefer_simple_using_statement = true :none
190
+ csharp_prefer_simple_using_statement = true :suggestion
199
191
csharp_preserve_single_line_blocks = true
200
192
csharp_using_directive_placement = outside_namespace:silent
201
193
0 commit comments