rspec/rules/S1274/cobol/rule.adoc
2022-02-04 16:28:24 +00:00

31 lines
620 B
Plaintext

When a closable statement contains nested statements, it can quickly become difficult to see which statements are nested and which are not. That's why ending a list of nested statements with ``++END-${STATEMENT-NAME}++`` is advised.
== Noncompliant Code Example
[source,cobol]
----
READ DF-PARAM-SPILOTE AT END
GO TO F-LECT-SPILOTE.
----
== Compliant Solution
[source,cobol]
----
READ DF-PARAM-SPILOTE AT END
GO TO F-LECT-SPILOTE
END-READ.
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::parameters.adoc[]
endif::env-github,rspecator-view[]