rspec/rules/S1492/cobol/rule.adoc
2022-02-04 16:28:24 +00:00

32 lines
613 B
Plaintext

include::../description.adoc[]
include::../ask-yourself.adoc[]
include::../recommended.adoc[]
== Sensitive Code Example
----
SELECT * FROM db_persons INTO us_persons
----
== Compliant Solution
[source,cobol]
----
SELECT * FROM db_persons INTO us_persons WHERE country IS 'US'
----
== Exceptions
Not having a WHERE clause is acceptable in read-only cursors as results are generally sorted and it is possible to stop processing in the middle.
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
endif::env-github,rspecator-view[]