rspec/rules/S2795/rpg/rule.adoc

28 lines
545 B
Plaintext
Raw Normal View History

2021-04-28 16:49:39 +02:00
``++Eval++`` and ``++Callp++`` are the only two exceptions to the rule that each free-format line must start with an operation code. Since you can leave these two opcodes out, you should for cleaner, more readable code.
2021-04-28 16:49:39 +02:00
== Noncompliant Code Example
----
Eval Regpay = hours * perHour;
Callp calcTax();
----
2021-04-28 16:49:39 +02:00
== Compliant Solution
----
Regpay = hours * perHour;
calcTax();
----
ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]