From ec5314e02d765d92feef1fde29b56279272bc44c Mon Sep 17 00:00:00 2001 From: iamdmitrij <3024338+iamdmitrij@users.noreply.github.com> Date: Tue, 30 Apr 2024 21:20:03 +0300 Subject: [PATCH] Fix S4023 --- .editorconfig | 3 +++ src/Polly/Polly.csproj | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 083be16435d..cda948939a1 100644 --- a/.editorconfig +++ b/.editorconfig @@ -27,6 +27,9 @@ dotnet_code_quality.CA1062.null_check_validation_methods = NotNull # S2094 // Classes should not be empty dotnet_diagnostic.S2094.severity = suggestion +# S4023 // Interfaces should not be empty +dotnet_diagnostic.S4023.severity = suggestion + # Prefer method-like constructs to have a block body csharp_style_expression_bodied_methods = true:error csharp_style_expression_bodied_constructors = true:error diff --git a/src/Polly/Polly.csproj b/src/Polly/Polly.csproj index 4ac2a74391d..6ce58c1b5d5 100644 --- a/src/Polly/Polly.csproj +++ b/src/Polly/Polly.csproj @@ -10,7 +10,7 @@ $(NoWarn);S3872;SA1402;SA1414;S3215 $(NoWarn);IDE1006;CA1062;CA1068;S4039;CA1000;CA1063;CA1031;CA1051 $(NoWarn);CA2211;S2223;CA1032;CA1815;CA1816;S4457;SA1615;CA1033 - $(NoWarn);S4023;CA1010;S3442;CA1064;SA1649;SA1623;SA1118 + $(NoWarn);CA1010;S3442;CA1064;SA1649;SA1623;SA1118 $(NoWarn);S3971;CA1724;CA1716;SA1108;CA1710;S4049;S3246 $(NoWarn);CA1805