Open Basssiiie opened 1 year ago
Thank you for opening this issue @Basssiiie .
I can confirm that this is indeed a False Positive. I added a reproducer in our testcases and included this issue to our backlog.
Kind Regards, Greg.
Hello @gregory-paidis-sonarsource
Thank you. Do you have an idea of where this is on the backlog? It's about a year and a half later and we still have this false positive occurring in our code base.
Thanks! 🙂
Hey there again! Unfortunately, I cannot give you an estimate. When we do our next FP/FN hardening sprint, I will try to prioritize this.
@gregory-paidis-sonarsource Thanks! 🙂
Description
Rule S5034 reports a false positive when consuming two different ValueTasks from different methods on the same class, within a
Task.WhenAll()
and with aAsTask()
.Repro steps
Expected behavior
No warnings here.
Actual behavior
SonarQube/SonarCloud reports the aforementioned warning on the first line within the
Task.WhenAll()
, even though bothValueTask
's are different as they are returned from different methods.Related information
Hope it helps. Let me know if there are any further questions. :)