-
Notifications
You must be signed in to change notification settings - Fork 231
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
S3900 FP: Re-assignment of parameters is ignored #2591
Labels
Area: C#
C# rules related issues.
Area: CFG/SE
CFG and SE related issues.
Type: CFG/SE FPs
Rule IS triggered when it shouldn't be for CFG and SE rules.
Milestone
Comments
thanks @saciervo I confirm the FP |
We're seeing this as well. |
martin-strecker-sonarsource
added a commit
that referenced
this issue
Apr 5, 2023
martin-strecker-sonarsource
added a commit
that referenced
this issue
Apr 6, 2023
martin-strecker-sonarsource
added a commit
that referenced
this issue
Apr 24, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area: C#
C# rules related issues.
Area: CFG/SE
CFG and SE related issues.
Type: CFG/SE FPs
Rule IS triggered when it shouldn't be for CFG and SE rules.
Description
Code in question:
Sonar C# falsely complains about the parameter
name
not getting validated.Repro steps
You can clone this repo to reproduce the error. The project won't compile.
Expected behavior
No complaints, because there is a null-check in place.
Actual behavior
Code is marked as non-compliant
Known workarounds
None, besides suppression
Related information
The text was updated successfully, but these errors were encountered: