You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue hasn't been resolved yet
Any case, I don't know if my error is relationed
compare2(a){a.forEach(b=>{if(typeofb=="object"){return"aaa";}elseif(Array.isArray(b)){// This line is marked as error sonarlint(javascript:S2583)return"bbbb";}else{return0;}});}
This rule is deprecated as it's based on the Symbolic Execution engine we plan to drop soon. So updating the SonarLint plugin should disable the rule (but not in VSCode yet, but it should be the case soon).
So I closing this issue as won't fix, as rule will be dropped eventually.
RSPEC-2583 - the following code triggers FP on the third condition -
https://sonarcloud.io/project/issues?id=kamushkin%3Asonarqube-tests&issues=AV0H2uTRI1Qj-tYTbHFX&open=AV0H2uTRI1Qj-tYTbHFX
Same when the code is written as if-else statements -
https://sonarcloud.io/project/issues?id=kamushkin%3Asonarqube-tests&issues=AV0H2uTTI1Qj-tYTbHFY&open=AV0H2uTTI1Qj-tYTbHFY
original source -
https://sonarcloud.io/project/issues?id=d3&open=AVcREIlyzjiM7eGZNOsO&resolved=false&types=BUG
The FP is not triggered when the third comparison is
==
, so probably a bug.The text was updated successfully, but these errors were encountered: