Skip to content

Commit 5de02b6

Browse files
authored
chore: Update code style configs and bump CodeCoverage version (#1168)
1 parent 04f69d7 commit 5de02b6

3 files changed

Lines changed: 19 additions & 21 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: 15 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
@@ -267,19 +266,18 @@ dotnet_diagnostic.IDE0290.severity = sugges
267266
# [CSharpier] Incompatible rules deactivated
268267
# https://csharpier.com/docs/IntegratingWithLinters#code-analysis-rules
269268
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
282269

283270
# Support for NetEvolve.Arguments Methods
284271
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1062#null-check-validation-methods
285272
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)
273+
274+
# Disable all style rules for generated code
275+
[*.{received,verified}.*]
276+
generated_code = true
277+
# Disable all style rules for migrations
278+
dotnet_analyzer_diagnostic.severity = none
279+
280+
[**/Migrations/*.{cs,csx,vb,vbx}]
281+
generated_code = true
282+
# Disable all style rules for migrations
283+
dotnet_analyzer_diagnostic.severity = none

Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<ItemGroup>
1717
<PackageVersion Include="Microsoft.Extensions.DependencyModel" Version="10.0.5" />
1818
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.5" />
19-
<PackageVersion Include="Microsoft.Testing.Extensions.CodeCoverage" Version="18.1.0" />
19+
<PackageVersion Include="Microsoft.Testing.Extensions.CodeCoverage" Version="18.5.2" />
2020
<PackageVersion Include="Microsoft.TestPlatform.TestHost" Version="18.3.0" />
2121
<PackageVersion Include="MSTest.TestAdapter" Version="4.1.0" />
2222
<PackageVersion Include="MSTest.TestFramework" Version="4.1.0" />

0 commit comments

Comments
 (0)