rspec/rules/S1682/cobol/rule.adoc
2022-02-04 16:28:24 +00:00

29 lines
492 B
Plaintext

The use of an array structure is useless when the array only has one element. Using an array structure anyway can impact performance and decrease the readability of the source code.
== Noncompliant Code Example
[source,cobol]
----
03 WS-LIBELLE OCCURS 1.
----
== Compliant Solution
[source,cobol]
----
03 WS-LIBELLE.
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
endif::env-github,rspecator-view[]