rspec/rules/S109/rpg/rule.adoc

32 lines
614 B
Plaintext
Raw Normal View History

2020-06-30 10:16:44 +02:00
Using a named constant to refer to an indicator makes the content of the field clearer, and therefore makes the code easier to read and maintain.
== Noncompliant Code Example
----
/Free
If *In(25); // Noncompliant
// Process contents...
EndIf;
----
== Compliant Solution
----
D accountTotal c 25
/Free
If *In(accountTotal);
// Process contents...
EndIf;
----
ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]