Skip to content

Commit 3e71df3

Browse files
Evangelinkarturcic
authored andcommitted
CA2208: Instantiate argument exceptions correctly
1 parent 263eaa6 commit 3e71df3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,6 @@ dotnet_diagnostic.CA1825.severity = warning
166166

167167
# CA1822: Mark members as static
168168
dotnet_diagnostic.CA1822.severity = warning
169+
170+
# CA2208: Instantiate argument exceptions correctly
171+
dotnet_diagnostic.CA2208.severity = warning

src/GitVersion.Core/VersionCalculation/SemanticVersioning/SemanticVersion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ public SemanticVersion IncrementVersion(VersionField incrementStrategy)
298298
incremented.Patch++;
299299
break;
300300
default:
301-
throw new ArgumentOutOfRangeException();
301+
throw new ArgumentOutOfRangeException(nameof(incrementStrategy));
302302
}
303303
}
304304
else

0 commit comments

Comments
 (0)