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

44 lines
987 B
Plaintext

Shared coding conventions allow teams to collaborate effectively. Typing operation codes, keywords, specification codes, compiler directives and built-in functions in upper case makes them more immediately recognizable as such, thereby making the code easier to read.
== Noncompliant Code Example
[source,text]
----
c test12 plist
c parm asdf01
c parm asdf02
c parm @pdq
----
[source,text]
----
/free
if x = *blank;
read a;
endif;
/end-free
----
== Compliant Solution
[source,text]
----
C test12 PLIST
C PARM asdf01
C PARM asdf02
C PARM @pdq
----
[source,text]
----
/free
IF x = *BLANK;
READ a;
ENDIF;
/end-free
----