rspec/rules/S2251/rspecator.adoc

23 lines
691 B
Plaintext
Raw Normal View History

ifdef::env-github,rspecator-view[]
2023-06-27 15:03:47 +02:00
'''
== Implementation Specification
(visible only on this page)
=== Message
"xxx" is (inc|dec)remented and will never reach "stop condition".
'''
== Comments And Links
(visible only on this page)
=== on 2 Dec 2014, 09:29:56 Pierre-Yves Nicolas wrote:
In fact, it's not an infinite loop because of integer overflow. On my computer, the noncompliant example above finishes in less than a second.
=== on 13 Mar 2015, 14:03:09 Pierre-Yves Nicolas wrote:
In JavaScript, moving the counter in the wrong direction causes an infinite loop because there is no integer type. All numbers are 64 bit floating point numbers.
2023-06-27 15:03:47 +02:00
endif::env-github,rspecator-view[]