rspec/rules/S2284/rpg/rule.adoc

20 lines
408 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
Free-format syntax is preferred because it is clearer, easier to write, and easier for newcomers to the language than fixed-format syntax.
== Noncompliant Code Example
----
C IF A > 10
C EVAL B = 1
C ENDIF
----
== Compliant Solution
----
/free
if A > 10;
B = 1;
endif;
/end-free
----