From e5e27c0afdc7afe3f54117a96dff9034991f4c83 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Wed, 12 Jun 2024 11:52:31 +0100 Subject: [PATCH] [ci skip] test: remove NOSONAR markers --- X10D/src/Core/SpanExtensions.cs | 2 -- X10D/src/Text/RuneExtensions.cs | 2 -- 2 files changed, 4 deletions(-) diff --git a/X10D/src/Core/SpanExtensions.cs b/X10D/src/Core/SpanExtensions.cs index c1f2a1e9f..ab79a160e 100644 --- a/X10D/src/Core/SpanExtensions.cs +++ b/X10D/src/Core/SpanExtensions.cs @@ -92,14 +92,12 @@ public static bool Contains(this ReadOnlySpan span, T value) where T : str } // dotcover disable - //NOSONAR default: #if NET7_0_OR_GREATER throw new UnreachableException(string.Format(ExceptionMessages.EnumSizeIsUnexpected, Unsafe.SizeOf())); #else throw new ArgumentException(string.Format(ExceptionMessages.EnumSizeIsUnexpected, Unsafe.SizeOf())); #endif - //NOSONAR // dotcover enable } } diff --git a/X10D/src/Text/RuneExtensions.cs b/X10D/src/Text/RuneExtensions.cs index 47349b1ac..c1f3ef942 100644 --- a/X10D/src/Text/RuneExtensions.cs +++ b/X10D/src/Text/RuneExtensions.cs @@ -98,7 +98,6 @@ public static string Repeat(this Rune value, int count) } // dotcover disable - //NOSONAR default: string exceptionFormat = ExceptionMessages.UnexpectedRuneUtf8SequenceLength; string message = string.Format(CultureInfo.CurrentCulture, exceptionFormat, length); @@ -107,7 +106,6 @@ public static string Repeat(this Rune value, int count) #else throw new InvalidOperationException(message); #endif - //NOSONAR // dotcover enable } }