Skip to content

Commit 8771268

Browse files
committed
refs or cleanup
1 parent cc62d2b commit 8771268

File tree

2 files changed

+40
-9
lines changed

2 files changed

+40
-9
lines changed

src/.editorconfig

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,54 @@
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
139

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
1439

1540
# Declare types in namespaces
16-
dotnet_diagnostic.CA1050.severity = None
41+
dotnet_diagnostic.CA1050.severity = none
1742

1843
# Use Literals Where Appropriate
1944
dotnet_diagnostic.CA1802.severity = error
2045

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+
2152
# Do not initialize unnecessarily
2253
dotnet_diagnostic.CA1805.severity = error
2354

@@ -147,7 +178,6 @@ dotnet_diagnostic.CA1869.severity = error
147178
# Use a cached 'SearchValues' instance
148179
dotnet_diagnostic.CA1870.severity = error
149180

150-
151181
# Microsoft .NET properties
152182
trim_trailing_whitespace = true
153183
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
200230
resharper_merge_into_logical_pattern_highlighting = warning
201231
resharper_merge_into_pattern_highlighting = error
202232
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
204235
resharper_redundant_base_qualifier_highlighting = warning
205236
resharper_redundant_cast_highlighting = error
206237
resharper_redundant_empty_object_creation_argument_list_highlighting = error

src/Directory.Packages.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
99
<PackageVersion Include="NUnit" Version="4.2.2" />
1010
<PackageVersion Include="NUnit3TestAdapter" Version="4.6.0" />
11-
<PackageVersion Include="ProjectDefaults" Version="1.0.144" />
11+
<PackageVersion Include="ProjectDefaults" Version="1.0.147" />
1212
<PackageVersion Include="SixLabors.ImageSharp" Version="3.1.6" />
1313
<PackageVersion Include="Verify" Version="28.4.0" />
1414
<PackageVersion Include="Verify.DiffPlex" Version="3.1.2" />
15-
<PackageVersion Include="Verify.Nunit" Version="28.3.2" />
15+
<PackageVersion Include="Verify.Nunit" Version="28.4.0" />
1616
</ItemGroup>
1717
</Project>

0 commit comments

Comments
 (0)