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
Describe the bug
EC69 flags method calls in the third section of a for-loop, even though these calls are legitimate.
Expected behavior
EC69 should not check the first and third sections of a for-loop, since these sections are dedicated to code execution before the first iteration and after each iteration respectively. The second section is probably the only one where code execution could often be executed only once instead of executed at each iteration.
Screenshots
Software Versions
SonarQube Version: 10.3
Plugin Version: 1.4.3
The text was updated successfully, but these errors were encountered:
Hello @fmunch,
thank you for issue !
I'm ok with you !
First of all, we will improve EC69 rule for Java. We will see next if this improvment must be done for other language plugins.
Describe the bug
EC69 flags method calls in the third section of a for-loop, even though these calls are legitimate.
Expected behavior
EC69 should not check the first and third sections of a for-loop, since these sections are dedicated to code execution before the first iteration and after each iteration respectively. The second section is probably the only one where code execution could often be executed only once instead of executed at each iteration.
Screenshots
Software Versions
The text was updated successfully, but these errors were encountered: