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
We are currently raising false positives on variables of loop conditions that could possibly be subject to mutation through function and methods calls:
letfoo={/* ... */};while(foo){// FPfoo.doSomething();// `doSomething` could modify `foo`}
We should assume that such variables are always modified in order to kill the noise.
yassin-kammoun-sonarsource
changed the title
FP on S2189 when loop condition variables are modified through function calls
Fix FP S2189 ('no-infinite-loop'): Ignore condition variables called on or passed over
Oct 6, 2022
We are currently raising false positives on variables of loop conditions that could possibly be subject to mutation through function and methods calls:
We should assume that such variables are always modified in order to kill the noise.
Reported in https://community.sonarsource.com/t/l3989-false-positive-in-loopsshouldnotbeinfinitecheck-should-support-guard-clause
The text was updated successfully, but these errors were encountered: