Skip to content

Commit 315fefe

Browse files
committed
Downgrade S2139 to suggestion
1 parent 534338a commit 315fefe

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ and adheres to a project-specific [Versioning](/README.md).
1818

1919
### Added
2020

21-
- S2139: Exceptions should be either logged or rethrown but not both
2221
- S2629: Logging templates should be constant
2322
- S3431: "[ExpectedException]" should not be used
2423
- S4347: Secure random number generators should not output predictable values

build/Neolution.CodeAnalysis.globalconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,10 @@ dotnet_diagnostic.S6678.severity = suggestion
282282
; This is handled by a custom model binder in our project templates that produces a bad request response in case of under-posting
283283
dotnet_diagnostic.S6964.severity = none
284284

285+
# S2139: Exceptions should be either logged or rethrown but not both
286+
; Although this rule makes sense, we do not want to enforce it
287+
dotnet_diagnostic.S2139.severity = suggestion
288+
285289
# S107: Methods should not have too many parameters
286290
dotnet_diagnostic.S107.severity = warning
287291

0 commit comments

Comments
 (0)