rspec/rules/S4507/cobol/rule.adoc

43 lines
816 B
Plaintext
Raw Normal View History

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
2022-02-04 17:28:24 +01:00
[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[]