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

38 lines
686 B
Plaintext

== Why is this an issue?
``++COPY ... SUPPRESS++`` suppresses the inclusion of the copybook contents from the source listing, making it very difficult to gain a complete understanding of what's happening in the code. This could hinder both maintenance and debugging.
=== Noncompliant code example
[source,cobol]
----
COPY XX001234 SUPPRESS. <* Noncompliant
----
=== Compliant solution
[source,cobol]
----
COPY XX001234.
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Don't "SUPPRESS" inclusion of this library in the code listing.
=== Highlighting
``++SUPPRESS++``
endif::env-github,rspecator-view[]