From 6b32f7d469730a34b304440712d31fc6e0fd3f20 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 1 Jan 2026 11:03:40 +0000 Subject: [PATCH 1/2] Bump Meziantou.Analyzer from 2.0.239 to 2.0.267 --- updated-dependencies: - dependency-name: Meziantou.Analyzer dependency-version: 2.0.267 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- src/LinkDotNet.StringBuilder/LinkDotNet.StringBuilder.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LinkDotNet.StringBuilder/LinkDotNet.StringBuilder.csproj b/src/LinkDotNet.StringBuilder/LinkDotNet.StringBuilder.csproj index 6486831..375d40c 100644 --- a/src/LinkDotNet.StringBuilder/LinkDotNet.StringBuilder.csproj +++ b/src/LinkDotNet.StringBuilder/LinkDotNet.StringBuilder.csproj @@ -42,7 +42,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive From e60c7ce34dd6e86844d7c035d127ead5e2d36c4d Mon Sep 17 00:00:00 2001 From: Steven Giesel Date: Thu, 1 Jan 2026 14:18:25 +0100 Subject: [PATCH 2/2] Fix MA0015: Specify parameter name in ArgumentException --- src/LinkDotNet.StringBuilder/ValueStringBuilder.Replace.cs | 4 ++-- src/LinkDotNet.StringBuilder/ValueStringBuilder.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/LinkDotNet.StringBuilder/ValueStringBuilder.Replace.cs b/src/LinkDotNet.StringBuilder/ValueStringBuilder.Replace.cs index ebf41f6..3eec46d 100644 --- a/src/LinkDotNet.StringBuilder/ValueStringBuilder.Replace.cs +++ b/src/LinkDotNet.StringBuilder/ValueStringBuilder.Replace.cs @@ -24,7 +24,7 @@ public ref partial struct ValueStringBuilder public readonly void Replace(char oldValue, char newValue, int startIndex, int count) { ArgumentOutOfRangeException.ThrowIfLessThan(startIndex, 0); - ArgumentOutOfRangeException.ThrowIfGreaterThan(startIndex + count, Length); + ArgumentOutOfRangeException.ThrowIfGreaterThan(startIndex + count, Length, nameof(count)); buffer.Slice(startIndex, count).Replace(oldValue, newValue); } @@ -84,7 +84,7 @@ public void Replace(scoped ReadOnlySpan oldValue, scoped ReadOnlySpan oldValue, scoped ReadOnlySpan newValue, int startIndex, int count) { ArgumentOutOfRangeException.ThrowIfLessThan(startIndex, 0); - ArgumentOutOfRangeException.ThrowIfGreaterThan(startIndex + count, Length); + ArgumentOutOfRangeException.ThrowIfGreaterThan(startIndex + count, Length, nameof(count)); if (oldValue.IsEmpty || oldValue.Equals(newValue, StringComparison.Ordinal)) { diff --git a/src/LinkDotNet.StringBuilder/ValueStringBuilder.cs b/src/LinkDotNet.StringBuilder/ValueStringBuilder.cs index d48869c..9ae997c 100644 --- a/src/LinkDotNet.StringBuilder/ValueStringBuilder.cs +++ b/src/LinkDotNet.StringBuilder/ValueStringBuilder.cs @@ -244,7 +244,7 @@ public void Remove(int startIndex, int length) { ArgumentOutOfRangeException.ThrowIfLessThan(length, 0); ArgumentOutOfRangeException.ThrowIfLessThan(startIndex, 0); - ArgumentOutOfRangeException.ThrowIfGreaterThan(startIndex + length, Length); + ArgumentOutOfRangeException.ThrowIfGreaterThan(startIndex + length, Length, nameof(length)); if (length == 0) {