Hi, I found a false negative about the rule RSPEC-3516, please read the following code example. SonarQube should report a warning in line 6 because different return
statements give identical return values. Hence, I think this is a false negative. Thanks for your consideration.
int foo(int a) {
int b = 12;
if (a == 1) {
return b + 1;
}
return b + 1; // should report a warning here, because same return value with line 4
}