Skip to content

Commit bb8daef

Browse files
chore(deps): bump NetEvolve.Defaults from 1.3.74 to 1.3.80 (#336)
1 parent 61f0db3 commit bb8daef

File tree

6 files changed

+11
-33
lines changed

6 files changed

+11
-33
lines changed

.editorconfig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ indent_style = space
1111
trim_trailing_whitespace = true
1212
charset = utf-8
1313
end_of_line = lf
14+
max_line_length = 120
1415

1516
# Verify settings
1617
# https://github.com/VerifyTests/Verify?tab=readme-ov-file#text-file-settings
@@ -24,7 +25,7 @@ tab_width = unset
2425
trim_trailing_whitespace = false
2526

2627
# Code files
27-
[*.{cs,csx,vb,vbx}]
28+
[*.{cs,csx,vb,vbx,razor,razor.cs}]
2829
indent_size = 4
2930
insert_final_newline = true
3031
charset = utf-8-bom
@@ -34,6 +35,7 @@ charset = utf-8-bom
3435
# See https://github.com/dotnet/aspnetcore/pull/23502 and https://github.com/dotnet/aspnetcore/issues/22753
3536
[*.{razor,cshtml}]
3637
charset = utf-8-bom
38+
indent_size = 4
3739

3840
# Generated code
3941
[*{_AssemblyInfo.cs,.notsupported.cs,.generated.cs}]
@@ -121,7 +123,7 @@ dotnet_style_null_propagation = true :
121123

122124
# Modifier preferences
123125
# See https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-language-conventions?view=vs-2019#normalize-modifiers
124-
dotnet_style_require_accessibility_modifiers = always : error
126+
dotnet_style_require_accessibility_modifiers = for_non_interface_members : error
125127
dotnet_style_readonly_field = true : warning
126128

127129
# Required Styles

Directory.Packages.props

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,8 @@
99
<GlobalPackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="3.3.4" />
1010
<GlobalPackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="9.0.0" />
1111
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
12-
<GlobalPackageReference
13-
Include="Microsoft.VisualStudio.Threading.Analyzers"
14-
Version="17.13.61"
15-
/>
16-
<GlobalPackageReference Include="NetEvolve.Defaults" Version="1.3.74" />
12+
<GlobalPackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.13.61" />
13+
<GlobalPackageReference Include="NetEvolve.Defaults" Version="1.3.80" />
1714
<GlobalPackageReference Include="Roslynator.Analyzers" Version="4.13.1" />
1815
<GlobalPackageReference
1916
Include="SonarAnalyzer.CSharp"
@@ -28,11 +25,6 @@
2825
<PackageVersion Include="NetEvolve.Extensions.XUnit" Version="2.5.105" />
2926
<PackageVersion Include="Polyfill" Version="7.29.0" />
3027
<PackageVersion Include="xunit" Version="2.9.3" />
31-
</ItemGroup>
32-
<ItemGroup Condition=" '$(TargetFramework)' == 'net5.0' Or '$(TargetFramework)' == 'netcoreapp3.1' ">
33-
<PackageVersion Include="xunit.runner.visualstudio" Version="3.0.2" />
34-
</ItemGroup>
35-
<ItemGroup Condition=" '$(TargetFramework)' != 'net5.0' And '$(TargetFramework)' != 'netcoreapp3.1' ">
3628
<PackageVersion Include="xunit.runner.visualstudio" Version="3.0.2" />
3729
</ItemGroup>
3830
</Project>

src/NetEvolve.Arguments/Argument_ThrowArgumentOutOfRangeException.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ public static partial class Argument
1212
[DoesNotReturn]
1313
[MethodImpl(MethodImplOptions.NoInlining)]
1414
[StackTraceHidden]
15-
private static void ThrowArgumentOutOfRangeException<T>(
16-
string? paramName,
17-
T value,
18-
string? message = null
19-
)
15+
private static void ThrowArgumentOutOfRangeException<T>(string? paramName, T value, string? message = null)
2016
{
2117
throw new ArgumentOutOfRangeException(paramName, value, message);
2218
}

src/NetEvolve.Arguments/Argument_ThrowIfGreaterThanOrEqual.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@ public static void ThrowIfGreaterThanOrEqual<T>(
2929
#else
3030
if (value.CompareTo(other) >= 0)
3131
{
32-
ThrowArgumentOutOfRangeException(
33-
paramName,
34-
value,
35-
$"{paramName} ('{value}') must be less than '{other}'."
36-
);
32+
ThrowArgumentOutOfRangeException(paramName, value, $"{paramName} ('{value}') must be less than '{other}'.");
3733
}
3834
#endif
3935
}

src/NetEvolve.Arguments/Argument_ThrowIfNotEqual.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ public static void ThrowIfNotEqual<T>(
3030
#else
3131
if (!EqualityComparer<T>.Default.Equals(value, other))
3232
{
33-
ThrowArgumentOutOfRangeException(
34-
paramName,
35-
value,
36-
$"{paramName} ('{value}') must be equal to '{other}'."
37-
);
33+
ThrowArgumentOutOfRangeException(paramName, value, $"{paramName} ('{value}') must be equal to '{other}'.");
3834
}
3935
#endif
4036
}

tests/NetEvolve.Arguments.Tests.Unit/ArgumentTests_ThrowIfNullOrEmpty.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ public void ThrowIfNullOrEmpty_WhenIEnumerableNull_ThrowsArgumentNullException()
6060

6161
[Theory]
6262
[MemberData(nameof(ThrowIfNullOrEmptyEnumerableData))]
63-
public void ThrowIfNullOrEmpty_WhenIEnumerableIsEmpty_ThrowsArgumentException(
64-
IEnumerable<string> argument
65-
)
63+
public void ThrowIfNullOrEmpty_WhenIEnumerableIsEmpty_ThrowsArgumentException(IEnumerable<string> argument)
6664
{
6765
// Act
6866
void Act() => Argument.ThrowIfNullOrEmpty(argument);
@@ -73,9 +71,7 @@ IEnumerable<string> argument
7371

7472
[Theory]
7573
[MemberData(nameof(ThrowIfNullOrEmptyEnumerableWithData))]
76-
public void ThrowIfNullOrEmpty_WhenIEnumerableIsNotEmpty_ReturnsArgument(
77-
IEnumerable<string> argument
78-
)
74+
public void ThrowIfNullOrEmpty_WhenIEnumerableIsNotEmpty_ReturnsArgument(IEnumerable<string> argument)
7975
{
8076
// Act
8177
Argument.ThrowIfNullOrEmpty(argument);

0 commit comments

Comments
 (0)