rspec/rules/S1308/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

27 lines
786 B
Plaintext

== Why is this an issue?
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)
=== Message
Refactor this code to remove the GO TO statement.
'''
== Comments And Links
(visible only on this page)
=== is related to: S4883
endif::env-github,rspecator-view[]