diff --git a/Benchmarks/Serilog.Exceptions.Benchmark/Point.cs b/Benchmarks/Serilog.Exceptions.Benchmark/Point.cs index cf2e36c2..5bee0181 100644 --- a/Benchmarks/Serilog.Exceptions.Benchmark/Point.cs +++ b/Benchmarks/Serilog.Exceptions.Benchmark/Point.cs @@ -8,6 +8,8 @@ public class Point public int Y { get; set; } +#pragma warning disable IDE0052 // Remove unread private members private int Z { get; set; } +#pragma warning restore IDE0052 // Remove unread private members } } diff --git a/Tests/.editorconfig b/Tests/.editorconfig index 4c591205..4b091964 100644 --- a/Tests/.editorconfig +++ b/Tests/.editorconfig @@ -22,7 +22,6 @@ dotnet_diagnostic.SA1602.severity = none # Custom ########################################## -[*.cs] # CA1032: Implement standard exception constructors # Justification: These are unit tests # https://docs.microsoft.com/en-us/visualstudio/code-quality/ca1032 @@ -42,3 +41,8 @@ dotnet_diagnostic.CA1303.severity = none # Justification: Test method names contain underscores # https://docs.microsoft.com/en-us/visualstudio/code-quality/ca1707 dotnet_diagnostic.CA1707.severity = none + +# CA2201: Do not raise reserved exception types +# Justification: These are unit tests +# https://docs.microsoft.com/en-us/visualstudio/code-quality/ca2201 +dotnet_diagnostic.CA2201.severity = none