Skip to content

Commit afe4c26

Browse files
committedDec 11, 2024·
refs
1 parent 706ff87 commit afe4c26

File tree

2 files changed

+32
-7
lines changed

2 files changed

+32
-7
lines changed
 

‎src/.editorconfig

+31-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
root = true
2-
# EditorConfig: http://EditorConfig.org
3-
4-
# top-most EditorConfig file
52

63
[*]
74
indent_style = space
85

9-
106
[*.cs]
117
indent_size = 4
128
charset = utf-8
@@ -17,12 +13,42 @@ resharper_redundant_accessor_body_highlighting = error
1713
# Replace with field keyword
1814
resharper_replace_with_field_keyword_highlighting = error
1915

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+
2040
# Declare types in namespaces
21-
dotnet_diagnostic.CA1050.severity = None
41+
dotnet_diagnostic.CA1050.severity = none
2242

2343
# Use Literals Where Appropriate
2444
dotnet_diagnostic.CA1802.severity = error
2545

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+
2652
# Do not initialize unnecessarily
2753
dotnet_diagnostic.CA1805.severity = error
2854

@@ -152,7 +178,6 @@ dotnet_diagnostic.CA1869.severity = error
152178
# Use a cached 'SearchValues' instance
153179
dotnet_diagnostic.CA1870.severity = error
154180

155-
156181
# Microsoft .NET properties
157182
trim_trailing_whitespace = true
158183
csharp_preferred_modifier_order = public, private, protected, internal, new, static, abstract, virtual, sealed, readonly, override, extern, unsafe, volatile, async:suggestion

‎src/Directory.Packages.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<PackageVersion Include="NUnit" Version="4.2.2" />
1212
<PackageVersion Include="NUnit3TestAdapter" Version="4.6.0" />
1313
<PackageVersion Include="Polyfill" Version="7.5.0" />
14-
<PackageVersion Include="ProjectDefaults" Version="1.0.144" />
14+
<PackageVersion Include="ProjectDefaults" Version="1.0.147" />
1515
<PackageVersion Include="System.Collections.Immutable" Version="9.0.0" />
1616
<PackageVersion Include="System.IO.Compression" Version="4.3.0" />
1717
<PackageVersion Include="Verify" Version="28.4.0" />

0 commit comments

Comments
 (0)
Please sign in to comment.