Skip to content

Commit 7796688

Browse files
chore(deps): update dependency tunit to 1.23.7 (#624)
* chore(deps): update dependency tunit to 1.23.7 * fix: Added missing `Polyfill` package --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Martin Stühmer <me@samtrion.net>
1 parent ca7d57f commit 7796688

5 files changed

Lines changed: 34 additions & 28 deletions

File tree

.csharpierignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
**/nuget.config
2-
**/_snapshots/
3-
**/_snapshot/
1+
**/[Nn]u[Gg]et.config
2+
**/*.verified.*
3+
**/*.received.*

.editorconfig

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,22 @@ generated_code = true
4444
# XML project files
4545
[*.{slnx,csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj,nativeproj,locproj}]
4646
indent_size = 2
47-
max_line_length = 160
47+
max_line_length = 200
4848

4949
# Xml build files
5050
[*.builds]
5151
indent_size = 2
52+
max_line_length = 200
5253

5354
# Xml files
5455
[*.{xml,stylecop,resx,ruleset}]
5556
indent_size = 2
57+
max_line_length = 200
5658

5759
# XML config files
5860
[*.{props,targets,ruleset,config,nuspec,vsixmanifest,vsct}]
5961
indent_size = 2
62+
max_line_length = 200
6063

6164
# JSON files
6265
[*.json]
@@ -87,10 +90,6 @@ insert_final_newline = false
8790
[*.sln]
8891
indent_style = tab
8992

90-
[*.{received,verified}.txt]
91-
insert_final_newline = false
92-
trim_trailing_whitespace = false
93-
9493
[*.{cs,csx,vb,vbx}]
9594
# .NET Code Style Settings
9695
# See https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference
@@ -135,6 +134,13 @@ dotnet_naming_rule.all_const.severity = error
135134
dotnet_naming_rule.all_const.style = all_elements
136135
dotnet_naming_rule.all_const.symbols = all_const
137136

137+
dotnet_naming_style.all_static_readonly.capitalization = pascal_case
138+
dotnet_naming_symbols.all_static_readonly.applicable_kinds = field
139+
dotnet_naming_symbols.all_static_readonly.required_modifiers = static, readonly
140+
dotnet_naming_rule.all_static_readonly.severity = error
141+
dotnet_naming_rule.all_static_readonly.style = all_static_readonly
142+
dotnet_naming_rule.all_static_readonly.symbols = all_static_readonly
143+
138144
dotnet_naming_style.all_fields.required_prefix = _
139145
dotnet_naming_style.all_fields.capitalization = camel_case
140146
dotnet_naming_symbols.all_fields.applicable_kinds = field
@@ -267,19 +273,18 @@ dotnet_diagnostic.IDE0290.severity = sugges
267273
# [CSharpier] Incompatible rules deactivated
268274
# https://csharpier.com/docs/IntegratingWithLinters#code-analysis-rules
269275
dotnet_diagnostic.IDE0055.severity = none
270-
dotnet_diagnostic.SA1000.severity = none
271-
dotnet_diagnostic.SA1009.severity = none
272-
dotnet_diagnostic.SA1111.severity = none
273-
dotnet_diagnostic.SA1118.severity = none
274-
dotnet_diagnostic.SA1137.severity = none
275-
dotnet_diagnostic.SA1413.severity = none
276-
dotnet_diagnostic.SA1500.severity = none
277-
dotnet_diagnostic.SA1501.severity = none
278-
dotnet_diagnostic.SA1502.severity = none
279-
dotnet_diagnostic.SA1504.severity = none
280-
dotnet_diagnostic.SA1515.severity = none
281-
dotnet_diagnostic.SA1516.severity = none
282276

283277
# Support for NetEvolve.Arguments Methods
284278
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1062#null-check-validation-methods
285279
dotnet_code_quality.CA1062.null_check_validation_methods = M:NetEvolve.Arguments.Argument.ThrowIfNull(System.Object,System.String)|M:NetEvolve.Arguments.Argument.ThrowIfNull(System.Void*,System.String)|M:NetEvolve.Arguments.Argument.ThrowIfNullOrEmpty(System.String,System.String)|M:NetEvolve.Arguments.Argument.ThrowIfNullOrEmpty``1(System.Collections.Generic.IEnumerable{``0},System.String)|M:NetEvolve.Arguments.Argument.ThrowIfNullOrWhiteSpace(System.String,System.String)
280+
281+
# Disable all style rules for generated code
282+
[*.{received,verified}.*]
283+
generated_code = true
284+
# Disable all style rules for migrations
285+
dotnet_analyzer_diagnostic.severity = none
286+
287+
[**/Migrations/*.{cs,csx,vb,vbx}]
288+
generated_code = true
289+
# Disable all style rules for migrations
290+
dotnet_analyzer_diagnostic.severity = none

Directory.Build.props

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@
33
<_NetTargetFrameworks>net6.0;net7.0;net8.0;net9.0;net10.0</_NetTargetFrameworks>
44
<_ClassicTargetFrameworks>net472;net48;net481</_ClassicTargetFrameworks>
55
<_ProjectTargetFrameworks>$(_NetTargetFrameworks);netstandard2.0</_ProjectTargetFrameworks>
6-
<_ProjectTargetFrameworks Condition=" '$(OS)' == 'Windows_NT' "
7-
>$(_ProjectTargetFrameworks);$(_ClassicTargetFrameworks)</_ProjectTargetFrameworks
8-
>
6+
<_ProjectTargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">$(_ProjectTargetFrameworks);$(_ClassicTargetFrameworks)</_ProjectTargetFrameworks>
97
<_TestTargetFrameworks>$(_NetTargetFrameworks)</_TestTargetFrameworks>
10-
<_TestTargetFrameworks Condition=" '$(OS)' == 'Windows_NT' "
11-
>$(_TestTargetFrameworks);$(_ClassicTargetFrameworks)</_TestTargetFrameworks
12-
>
8+
<_TestTargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">$(_TestTargetFrameworks);$(_ClassicTargetFrameworks)</_TestTargetFrameworks>
139
<CheckEolTargetFramework>false</CheckEolTargetFramework>
1410
</PropertyGroup>
1511
</Project>

Directory.Packages.props

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
<ItemGroup>
1717
<PackageVersion Include="Microsoft.Testing.Extensions.CodeCoverage" Version="18.5.2" />
1818
<PackageVersion Include="NetEvolve.Extensions.TUnit" Version="3.5.238" />
19-
<PackageVersion Include="TUnit" Version="1.22.19" />
19+
<PackageVersion Include="Polyfill" Version="9.23.0" />
20+
<PackageVersion Include="TUnit" Version="1.23.7" />
2021
<PackageVersion Include="Verify.TUnit" Version="31.13.5" />
2122
</ItemGroup>
2223
</Project>

tests/NetEvolve.Arguments.Tests.Unit/NetEvolve.Arguments.Tests.Unit.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22
<PropertyGroup>
33
<TargetFrameworks>$(_TestTargetFrameworks)</TargetFrameworks>
44
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
5-
<NoWarn>$(NoWarn);NU1701;CS0618;IDE1006</NoWarn>
5+
<NoWarn>$(NoWarn);NU1701;CS0618;IDE1006;NU1504</NoWarn>
66
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
77
<OutputType>Exe</OutputType>
88
</PropertyGroup>
99
<ItemGroup>
1010
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" />
1111
<PackageReference Include="NetEvolve.Extensions.TUnit" />
12+
<PackageReference Include="Polyfill" NoWarn="NU1504">
13+
<PrivateAssets>all</PrivateAssets>
14+
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
15+
</PackageReference>
1216
<PackageReference Include="TUnit" />
1317
<PackageReference Include="Verify.TUnit" />
1418
</ItemGroup>

0 commit comments

Comments
 (0)