diff --git a/.editorconfig b/.editorconfig index 22eecf7..57ef805 100644 --- a/.editorconfig +++ b/.editorconfig @@ -101,6 +101,9 @@ csharp_style_var_elsewhere = true:silent ## SonarAnalyzers.CSharp +# Unreachable code detected +dotnet_diagnostic.cs0162.severity = error + # Remove this commented out code. dotnet_diagnostic.s125.severity = warning @@ -113,6 +116,9 @@ dotnet_diagnostic.S1481.severity = error # Remove this empty class, write its code or make it an "interface". dotnet_diagnostic.s2094.severity = error +# Either log this exception and handle it, or rethrow it with some contextual information. +dotnet_diagnostic.s2139.severity = error + # Either implement 'IDisposable.Dispose', or totally rename this method to prevent confusion. dotnet_diagnostic.s2953.severity = error diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 129f960..c281508 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -72,7 +72,7 @@ jobs: - name: Unit Test id: test run: | - dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover + dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --logger "console;verbosity=detailed" - name: Upload coverage # any except canceled or skipped