rspec/rules/S127/java/rule.adoc

25 lines
418 B
Plaintext
Raw Normal View History

2020-06-30 10:16:44 +02:00
include::../description.adoc[]
== Noncompliant Code Example
----
for (int i = 0; i < 10; i++) {
...
i = i - 1; // Noncompliant; counter updated in the body of the loop
...
}
----
== Compliant Solution
----
for (int i = 0; i < 10; i++) {...}
----
ifdef::env-github,rspecator-view[]
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]