rspec/rules/S1140/cobol/rule.adoc
Fred Tingaud 16f6c0aecf
Inline adoc when include has no additional value (#1940)
Inline adoc files when they are included exactly once.

Also fix language tags because this inlining gives us better information
on what language the code is written in.
2023-05-25 14:18:12 +02:00

28 lines
685 B
Plaintext

== 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[]