When only the condition expression is defined in a for loop, but the init and increment expressions are missing, a while loop should be used instead to increase readability.

Noncompliant Code Example

for(;condition;) { /*...*/ }

Compliant Solution

while(condition) { /*...*/ }