rspec/rules/S2252/description.adoc

2 lines
216 B
Plaintext
Raw Normal View History

2021-01-27 13:42:22 +01:00
If a ``++for++`` loop's condition is false before the first loop iteration, the loop will never be executed. Such loops are almost always bugs, particularly when the initial value and stop conditions are hard-coded.