rspec/rules/S1140/cobol/rule.adoc

28 lines
685 B
Plaintext
Raw Normal View History

== Why is this an issue?
As soon as a closable statement contains some nested statements, it could quickly become difficult to see which statements are nested and which are not. That's why ending a list of nested statements by END-${STATEMENT-NAME} is advised.
The following code snippet illustrates this rule:
----
READ DF-PARAM-SPILOTE AT END
GO TO F-LECT-SPILOTE. *> Non-Compliant
...
IF SOMETHING
MOVE A TO B.
END-IF. *> Compliant
...
----
ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)
=== on 23 Sep 2013, 09:52:45 Freddy Mallet wrote:
Manually tested !
endif::env-github,rspecator-view[]