rspec/rules/S108/flex/rule.adoc

33 lines
492 B
Plaintext
Raw Normal View History

2020-06-30 10:16:44 +02:00
include::../description.adoc[]
== Noncompliant Code Example
----
for (var i:int = 0; i < 42; i++){} // Noncompliant
try { // Noncompliant
} catch (error)
{
...
}
----
== Compliant Solution
----
for (var i:int = 0; i < 42; i++);
for (var i:int = 0; i < 42; i++) {
trace(i);
}
----
include::../exceptions.adoc[]
ifdef::rspecator-view[]
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::rspecator-view[]