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

31 lines
641 B
Plaintext

== Why is this an issue?
Programs that include a lot of copybooks tend to aggregate too many responsibilities and inevitably become harder to understand and therefore to maintain. Above a specific threshold, it is strongly advised to refactor the program into smaller ones which focus on well-defined topics.
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
There are X COPY directives in this program, which is greater than the Y authorized.
=== Parameters
.Threshold
****
----
50
----
The maximum authorized COPY directives
****
endif::env-github,rspecator-view[]