rspec/rules/S2252/description.adoc

2 lines
221 B
Plaintext
Raw Normal View History

2020-06-30 12:48:07 +02:00
If a <code>for</code> 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.