Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NS1004 false positive when using argument matcher in a separate method #213

Closed
Tum4ik opened this issue Sep 17, 2023 · 0 comments · Fixed by #214
Closed

NS1004 false positive when using argument matcher in a separate method #213

Tum4ik opened this issue Sep 17, 2023 · 0 comments · Fixed by #214
Labels
bug Something isn't working
Milestone

Comments

@Tum4ik
Copy link

Tum4ik commented Sep 17, 2023

When the argument matcher is quite complex, there is a natural wish to extract the matcher to a separate method.
But in that case the analyzer produces a warning.

image

You can check the example in my repo: https://github.com/Tum4ik/just-clipboard-manager/blob/main/Tests/Tum4ik.JustClipboardManager.UnitTests/Services/PasteServiceTests.cs

@tpodolak tpodolak added the bug Something isn't working label Sep 22, 2023
tpodolak added a commit that referenced this issue Dec 9, 2023
…itives

GH-213 - do not report NS1004 when arg matcher is used directly in return statement
@tpodolak tpodolak modified the milestones: 1.0.16, 1.0.17 Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants