Skip to content

Commit f25e5db

Browse files
authored
Remove S4144: Methods should not have identical implementations from Tests ruleset (#28)
1 parent 0bcb022 commit f25e5db

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: actions/checkout@v3
1616

1717
- name: Determine version for NuGet package
18-
run: echo NUGET_VERSION=0.$(date '+%Y.%m')-ci.$(date '+%d%H%M%S') >> $GITHUB_ENV
18+
run: echo NUGET_VERSION=0.$(date '+%Y.%m')-ci$(date '+%d%H%M%S') >> $GITHUB_ENV
1919

2020
- name: Replace version number in nuspec files
2121
run: 'sed -i -e "s/{{NuGetVersion}}/$NUGET_VERSION/g" *.nuspec'

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and adheres to a project-specific [Versioning](/README.md).
77

88
## [Unreleased]
99

10+
### Removed
11+
12+
- (Tests ruleset) S4144: Methods should not have identical implementations, because when using parameterised tests it can make sense to have different test methods with different parametrization but using the same implementation.
13+
1014
## [3.1.1] - 2024-09-20
1115

1216
### Changed

build/Neolution.CodeAnalysis.TestsRuleset.globalconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,7 @@ dotnet_diagnostic.S126.severity = none
4040
# S4581: "new Guid()" should not be used
4141
; When creating mocks/substitutes this can be irrelevant, so it should not break the build
4242
dotnet_diagnostic.S4581.severity = suggestion
43+
44+
# S4144: Methods should not have identical implementations
45+
; When using parameterised tests it can make sense to have different test methods with different parametrization but using the same implementation.
46+
dotnet_diagnostic.S4144.severity = none

0 commit comments

Comments
 (0)