rspec/rules/S1726/cobol/rule.adoc

30 lines
548 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
Aligning common keywords in a series of statements makes the code easier to read. therefore, it is better to align the ``++TO++`` keywords in a series of successive MOVE statements.
2021-04-28 16:49:39 +02:00
== Noncompliant Code Example
----
MOVE "Hi There" TO field
MOVE temp TO b
MOVE 123 TO item
----
2021-04-28 16:49:39 +02:00
== Compliant Solution
----
MOVE "Hi There" TO field
MOVE temp TO b
MOVE 123 TO item
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
endif::env-github,rspecator-view[]