rspec/rules/S4507/cobol/rule.adoc
Fred Tingaud 51369b610e
Make sure that includes are always surrounded by empty lines (#2270)
When an include is not surrounded by empty lines, its content is inlined
on the same line as the adjacent content. That can lead to broken tags
and other display issues.
This PR fixes all such includes and introduces a validation step that
forbids introducing the same problem again.
2023-06-22 10:38:01 +02:00

44 lines
817 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[]