Skip to content

Commit

Permalink
[ci skip] test: remove NOSONAR markers
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Jun 12, 2024
1 parent c338f42 commit e5e27c0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions X10D/src/Core/SpanExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,12 @@ public static bool Contains<T>(this ReadOnlySpan<T> span, T value) where T : str
}

// dotcover disable
//NOSONAR
default:
#if NET7_0_OR_GREATER
throw new UnreachableException(string.Format(ExceptionMessages.EnumSizeIsUnexpected, Unsafe.SizeOf<T>()));
#else
throw new ArgumentException(string.Format(ExceptionMessages.EnumSizeIsUnexpected, Unsafe.SizeOf<T>()));
#endif
//NOSONAR
// dotcover enable
}
}
Expand Down
2 changes: 0 additions & 2 deletions X10D/src/Text/RuneExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -107,7 +106,6 @@ public static string Repeat(this Rune value, int count)
#else
throw new InvalidOperationException(message);
#endif
//NOSONAR
// dotcover enable
}
}
Expand Down

0 comments on commit e5e27c0

Please sign in to comment.