-
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
Add reproducers for S2583/S2589 issues #7793
Conversation
54f41f5
to
9826ebd
Compare
aca8f6e
to
6ac7758
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; Just nitpicks.
return false; | ||
} | ||
|
||
if (foundA) // Noncompliant FP, we run the loop only three times and SE never learns that foundA can be True. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (foundA) // Noncompliant FP, we run the loop only three times and SE never learns that foundA can be True. | |
if (foundA) // Noncompliant FP, we run the loop twice but the second branch never leaves the loop |
|
||
if (foundA) // Noncompliant FP, we run the loop only three times and SE never learns that foundA can be True. | ||
{ | ||
return true; // Secondary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return true; // Secondary | |
return true; // Secondary FP |
{ | ||
public void Method(Guid guid) | ||
{ | ||
if (guid == null || guid == Guid.Empty) // Noncompliant S2589, no secondary issue is raised. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Validate the message to prove that the correct issue is being raised.
Kudos, SonarCloud Quality Gate passed! |
Kudos, SonarCloud Quality Gate passed! |
Add repros for #5002, #5601, #739, #2411
Update UTs and UT annotations.