From 71121229518225d5c5644cd733c48d9925187a20 Mon Sep 17 00:00:00 2001 From: Giuseppe Lippolis Date: Thu, 15 Dec 2022 17:11:25 +0100 Subject: [PATCH] feat: Enable Rule CS0162 --- .editorconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.editorconfig b/.editorconfig index 7995062f9f..ff7ac5d69e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -140,6 +140,8 @@ dotnet_analyzer_diagnostic.category-Performance.severity = none #error - Uncomme # CS1591: Missing XML comment for publicly visible type or member dotnet_diagnostic.CS1591.severity = suggestion +# CS0162: Remove unreachable code +dotnet_diagnostic.CS0162.severity = error # CA1304: Specify CultureInfo dotnet_diagnostic.CA1304.severity = warning # CA1802: Use literals where appropriate