Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
RehanSaeed committed Jan 13, 2021
1 parent ced97c7 commit 2a3197d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Benchmarks/Serilog.Exceptions.Benchmark/Point.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
6 changes: 5 additions & 1 deletion Tests/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 2a3197d

Please sign in to comment.