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

43 lines
816 B
Plaintext

include::../description.adoc[]
include::../ask-yourself.adoc[]
== Recommended Secure Coding Practices
Do not enable debugging features on production servers
``++WITH DEBUGGING MODE++`` activates all debug lines (ones with 'D' or 'd' in the indicator area). This clause should not be used in production.
== Sensitive Code Example
----
SOURCE-COMPUTER. IBM-370 WITH DEBUGGING MODE.
----
== Compliant Solution
[source,cobol]
----
SOURCE-COMPUTER. IBM-370.
----
include::../see.adoc[]
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Make sure this debug clause is removed before delivering the code in production.
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]