We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 263eaa6 commit 3e71df3Copy full SHA for 3e71df3
.editorconfig
@@ -166,3 +166,6 @@ dotnet_diagnostic.CA1825.severity = warning
166
167
# CA1822: Mark members as static
168
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
@@ -298,7 +298,7 @@ public SemanticVersion IncrementVersion(VersionField incrementStrategy)
298
incremented.Patch++;
299
break;
300
default:
301
- throw new ArgumentOutOfRangeException();
+ throw new ArgumentOutOfRangeException(nameof(incrementStrategy));
302
}
303
304
else
0 commit comments