rspec/rules/S2796/rpg/rule.adoc

43 lines
835 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
Even if there's no data to be returned from a procedure, each procedure should at least return a boolean to indicate when procedure execution failed, so callers can respond accordingly.
2021-04-28 16:49:39 +02:00
== Noncompliant Code Example
----
D MyProc PI
D param1 10A const
/free
// do work...
return; // Noncompliant
/end-free
----
2021-04-28 16:49:39 +02:00
== Compliant Solution
----
D MyProc PI N
D param1 10A const
/free
// do work...
return *ON;
/end-free
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
'''
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]