|
1 | 1 | root = true
|
2 |
| -# EditorConfig: http://EditorConfig.org |
3 |
| - |
4 |
| -# top-most EditorConfig file |
5 | 2 |
|
6 | 3 | [*]
|
7 | 4 | indent_style = space
|
8 | 5 |
|
9 |
| - |
10 | 6 | [*.cs]
|
11 | 7 | indent_size = 4
|
12 | 8 | charset = utf-8
|
13 | 9 |
|
| 10 | +# Redundant accessor body |
| 11 | +resharper_redundant_accessor_body_highlighting = error |
| 12 | + |
| 13 | +# Replace with field keyword |
| 14 | +resharper_replace_with_field_keyword_highlighting = error |
| 15 | + |
| 16 | +# Replace with single call to Single(..) |
| 17 | +resharper_replace_with_single_call_to_single_highlighting = error |
| 18 | + |
| 19 | +# Replace with single call to SingleOrDefault(..) |
| 20 | +resharper_replace_with_single_call_to_single_or_default_highlighting = error |
| 21 | + |
| 22 | +# Replace with single call to LastOrDefault(..) |
| 23 | +resharper_replace_with_single_call_to_last_or_default_highlighting = error |
| 24 | + |
| 25 | +# Replace with single call to Last(..) |
| 26 | +resharper_replace_with_single_call_to_last_highlighting = error |
| 27 | + |
| 28 | +# Replace with single call to First(..) |
| 29 | +resharper_replace_with_single_call_to_first_highlighting = error |
| 30 | + |
| 31 | +# Replace with single call to FirstOrDefault(..) |
| 32 | +resharper_replace_with_single_call_to_first_or_default_highlighting = error |
| 33 | + |
| 34 | +# Replace with single call to Any(..) |
| 35 | +resharper_replace_with_single_call_to_any_highlighting = error |
| 36 | + |
| 37 | +# Replace with single call to Count(..) |
| 38 | +resharper_replace_with_single_call_to_count_highlighting = error |
14 | 39 |
|
15 | 40 | # Declare types in namespaces
|
16 |
| -dotnet_diagnostic.CA1050.severity = None |
| 41 | +dotnet_diagnostic.CA1050.severity = none |
17 | 42 |
|
18 | 43 | # Use Literals Where Appropriate
|
19 | 44 | dotnet_diagnostic.CA1802.severity = error
|
20 | 45 |
|
| 46 | +# Potentially misleading parameter name in lambda or local function |
| 47 | +resharper_all_underscore_local_parameter_name_highlighting = none |
| 48 | + |
| 49 | +# Redundant explicit collection creation in argument of 'params' parameter |
| 50 | +resharper_redundant_explicit_params_array_creation_highlighting = error |
| 51 | + |
21 | 52 | # Do not initialize unnecessarily
|
22 | 53 | dotnet_diagnostic.CA1805.severity = error
|
23 | 54 |
|
@@ -147,7 +178,6 @@ dotnet_diagnostic.CA1869.severity = error
|
147 | 178 | # Use a cached 'SearchValues' instance
|
148 | 179 | dotnet_diagnostic.CA1870.severity = error
|
149 | 180 |
|
150 |
| - |
151 | 181 | # Microsoft .NET properties
|
152 | 182 | trim_trailing_whitespace = true
|
153 | 183 | csharp_preferred_modifier_order = public, private, protected, internal, new, static, abstract, virtual, sealed, readonly, override, extern, unsafe, volatile, async:suggestion
|
@@ -200,7 +230,8 @@ resharper_field_can_be_made_read_only_local_highlighting = none
|
200 | 230 | resharper_merge_into_logical_pattern_highlighting = warning
|
201 | 231 | resharper_merge_into_pattern_highlighting = error
|
202 | 232 | resharper_method_has_async_overload_highlighting = warning
|
203 |
| -resharper_partial_type_with_single_part_highlighting = error |
| 233 | +# because stop rider giving errors before source generators have run |
| 234 | +resharper_partial_type_with_single_part_highlighting = warning |
204 | 235 | resharper_redundant_base_qualifier_highlighting = warning
|
205 | 236 | resharper_redundant_cast_highlighting = error
|
206 | 237 | resharper_redundant_empty_object_creation_argument_list_highlighting = error
|
|
0 commit comments