rspec/rules/S1726/cobol/rule.adoc

18 lines
384 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.
== Noncompliant Code Example
----
MOVE "Hi There" TO field
MOVE temp TO b
MOVE 123 TO item
----
== Compliant Solution
----
MOVE "Hi There" TO field
MOVE temp TO b
MOVE 123 TO item
----