rspec/rules/S2252/description.adoc

2 lines
212 B
Plaintext
Raw Normal View History

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.