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[]
|
2021-06-02 20:44:38 +02:00
|
|
|
|
|
|
|
ifdef::rspecator-view[]
|
|
|
|
== Comments And Links
|
|
|
|
(visible only on this page)
|
|
|
|
|
|
|
|
include::../comments-and-links.adoc[]
|
|
|
|
endif::rspecator-view[]
|