Skip to content

Commit 6dddd07

Browse files
committed
refs or cleanup
1 parent 5858a2d commit 6dddd07

File tree

2 files changed

+34
-9
lines changed

2 files changed

+34
-9
lines changed

src/.editorconfig

Lines changed: 31 additions & 6 deletions
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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@
1111
<PackageVersion Include="MarkdownSnippets.MsBuild" Version="27.0.2" />
1212
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.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="Resourcer.Fody" Version="1.8.1" />
1616
<PackageVersion Include="Serilog" Version="4.2.0" />
1717
<PackageVersion Include="Serilog.Sinks.File" Version="6.0.0" />
1818
<PackageVersion Include="System.Collections.Immutable" Version="9.0.0" />
1919
<PackageVersion Include="System.Globalization.Extensions" Version="4.3.0" />
2020
<PackageVersion Include="System.IO.Compression" Version="4.3.0" />
21-
<PackageVersion Include="System.Management" Version="8.0.0" />
21+
<PackageVersion Include="System.Management" Version="9.0.0" />
2222
<PackageVersion Include="System.Net.Http" Version="4.3.4" />
2323
<PackageVersion Include="System.Runtime.InteropServices.RuntimeInformation" Version="4.3.0" />
2424
<PackageVersion Include="System.Text.Json" Version="9.0.0" />
2525
<PackageVersion Include="Verify.DiffPlex" Version="3.1.2" />
2626
<PackageVersion Include="Verify.ImageMagick" Version="3.6.0" />
2727
<PackageVersion Include="Verify.WinForms" Version="4.0.0" />
28-
<PackageVersion Include="Verify.Xunit" Version="28.3.2" />
28+
<PackageVersion Include="Verify.Xunit" Version="28.4.0" />
2929
<PackageVersion Include="Xunit" Version="2.9.2" />
3030
<PackageVersion Include="xunit.runner.visualstudio" Version="3.0.0-pre.49" />
3131
<PackageVersion Include="XunitContext" Version="3.3.2" />

0 commit comments

Comments
 (0)