Closed TristanL06 closed 1 month ago
Hi @TristanL06, thank you for the issue. As seen together, here is an exaplanation :
if (a != null && b != null) {
return;
}
if (a == null) { ... } else { ... } ...
if we are ok, I will close this issue. ok for you @TristanL06 ?
it seems clear for me
Describe the bug The EC2 rule detect multiple if-else and ask to replace them by a single switch-case. This rule should detect only more than 4 variable access if-else since #222 and issue #216 but still detecting 2-variable-access code.
To Reproduce on code :
This code should be compliant but it is rased as non compliant for rule EC2.
Software Versions