rspec/rules/S1461/cobol/rule.adoc

34 lines
878 B
Plaintext
Raw Normal View History

== Why is this an issue?
2021-04-28 16:49:39 +02:00
An unused section is never called explicitly with help of the GO TO or PERFORM statements.
There can be only two reasons for having such a section:
* It is really unused and should be removed
* It is only used as a kind of comment to clearly delimit a block of code, which is a bad practice
The remediation action should be:
* Replace the section by a comment line
* Refactor the code to make an explicit call to this section instead of letting the execution flow going through it implicitly
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Either this section "XXX" is a dead code that must be removed or the code must be refactored to make an explicit call to it.
'''
== Comments And Links
(visible only on this page)
=== relates to: S1290
endif::env-github,rspecator-view[]