Skip to content

Commit a0baf74

Browse files
author
Per Kops
committed
chore: move two suppressions to .editorconfig instead of code
1 parent 1d79cc7 commit a0baf74

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

test/.editorconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,5 @@ dotnet_diagnostic.SA1133.severity = none # https://github.com/atc-net
5454
# Custom - Code Analyzers Rules
5555
##########################################
5656

57-
dotnet_diagnostic.CA1062.severity = none # Validate arguments of public methods
57+
dotnet_diagnostic.CA1062.severity = none # Validate arguments of public methods
58+
dotnet_diagnostic.CA2201.severity = none # Do not raise reserved exception types

test/Atc.Hosting.Tests/BackgroundServiceBaseTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ public async Task StopAsync_Stops_BackgroundService()
8888
}
8989

9090
[Fact]
91-
[SuppressMessage("Usage", "CA2201:Do not raise reserved exception types", Justification = "OK - for testing.")]
9291
public async Task Logging_Start_Retry_Cancel_Stop()
9392
{
9493
// Arrange
@@ -194,7 +193,6 @@ public async Task Logging_Start_Exception_Stop()
194193
}
195194

196195
[Fact]
197-
[SuppressMessage("Usage", "CA2201:Do not raise reserved exception types", Justification = "OK - for testing.")]
198196
public async Task HealthService_Start_Retry_Cancel_Stop()
199197
{
200198
// Arrange

test/Atc.Hosting.Tests/GlobalUsings.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
global using System.Collections.Concurrent;
2-
global using System.Diagnostics.CodeAnalysis;
32
global using System.Reflection;
43

54
global using Atc.Hosting.Tests.XUnitTestTypes;

0 commit comments

Comments
 (0)