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
@@ -17,12 +13,42 @@ resharper_redundant_accessor_body_highlighting = error
17
13
# Replace with field keyword
18
14
resharper_replace_with_field_keyword_highlighting = error
19
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
39
+
20
40
# Declare types in namespaces
21
- dotnet_diagnostic.CA1050.severity = None
41
+ dotnet_diagnostic.CA1050.severity = none
22
42
23
43
# Use Literals Where Appropriate
24
44
dotnet_diagnostic.CA1802.severity = error
25
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
+
26
52
# Do not initialize unnecessarily
27
53
dotnet_diagnostic.CA1805.severity = error
28
54
@@ -152,7 +178,6 @@ dotnet_diagnostic.CA1869.severity = error
152
178
# Use a cached 'SearchValues' instance
153
179
dotnet_diagnostic.CA1870.severity = error
154
180
155
-
156
181
# Microsoft .NET properties
157
182
trim_trailing_whitespace = true
158
183
csharp_preferred_modifier_order = public, private, protected, internal, new, static, abstract, virtual, sealed, readonly, override, extern, unsafe, volatile, async:suggestion
0 commit comments