rspec/rules/S1308/cobol/rule.adoc

23 lines
755 B
Plaintext
Raw Normal View History

== Why is this an issue?
2021-04-28 16:49:39 +02:00
Unstructured programming has been strongly criticized for producing barely readable (spaghetti) code. It offers programmers great freedom, but is considered a bad approach for creating major projects.
In COBOL, the use of ``++GO TO++`` statements can lead to unstructured control flows. Eliminating ``++GO TO++`` statements in favor of ``++PERFORM++`` statements will aid adherence to a procedural programming approach. However, this change could require heavy refactoring.
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
'''
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]