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

29 lines
513 B
Plaintext

Indicators should not be used on "IF" statements because they foster poor logic flow and result in code that is difficult to read and maintain.
== Noncompliant Code Example
[source,rpg]
----
C 99FLD1 IFEQ FLD2
----
== Compliant Solution
[source,rpg]
----
C FLD1 IFEQ FLD2
C *IN99 ANDEQ *ON
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
endif::env-github,rspecator-view[]