rspec/rules/S2795/rpg/rule.adoc

16 lines
380 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.
== Noncompliant Code Example
----
Eval Regpay = hours * perHour;
Callp calcTax();
----
== Compliant Solution
----
Regpay = hours * perHour;
calcTax();
----