rspec/rules/S109/rpg/rule.adoc
2020-06-30 10:16:44 +02:00

24 lines
450 B
Plaintext

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;
----