rspec/rules/S2252/description.adoc

2 lines
212 B
Plaintext
Raw Normal View History

2020-12-23 14:59:06 +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.