-
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
S2259 FP: Null conditional combined with null coalescing #4537
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
Hi @przemyslaw-piescik , Thank you for reporting this case, I can confirm it as False Positive. We already have similar issue reported in #2528 with the same root cause that you can follow. I'll close this one. |
I'll actually keep this one opened, as it's isolated from the integer constraint issue reported in the other one. |
pavel-mikula-sonarsource
added a commit
that referenced
this issue
Jun 24, 2021
pavel-mikula-sonarsource
added a commit
that referenced
this issue
Jul 2, 2021
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
S2259 is incorrectly reported when using null conditional with null coalescing operator.
Repro steps
Expected behavior
S2259 should not be reported in this case.
Actual behavior
S2259 is reported.
The text was updated successfully, but these errors were encountered: