rspec/rules/S907/rpg/rule.adoc
2020-12-23 14:59:06 +01:00

10 lines
348 B
Plaintext

``GOTO`` is an unstructured control flow statement. It makes code less readable and maintainable, and should only be used to branch to defined ``ENDSR`` points within the source. For normal loop functions use ``ITER`` or ``LEAVE`` instead.
== Noncompliant Code Example
----
C LOOP1 TAG
...
C GOTO LOOP1
----