From 58c333a1735524987710d857629569ba7548cc95 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sun, 2 Apr 2023 01:05:27 +0100 Subject: [PATCH] ci: exclude default arm of Rune.Repeat from coverage --- X10D/X10D.csproj | 12 +++++++++++- X10D/src/Text/RuneExtensions.cs | 4 ++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/X10D/X10D.csproj b/X10D/X10D.csproj index 4fd6fb5..9b652d9 100644 --- a/X10D/X10D.csproj +++ b/X10D/X10D.csproj @@ -89,7 +89,17 @@ - + + Analyzer + false + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/X10D/src/Text/RuneExtensions.cs b/X10D/src/Text/RuneExtensions.cs index e336580..9bb798e 100644 --- a/X10D/src/Text/RuneExtensions.cs +++ b/X10D/src/Text/RuneExtensions.cs @@ -98,8 +98,12 @@ public static class RuneExtensions }); } + // dotcover disable + //NOSONAR default: return Default(); + //NOSONAR + // dotcover enable } [ExcludeFromCodeCoverage, DoesNotReturn]