rspec/rules/S2026/rpg/rule.adoc

30 lines
686 B
Plaintext
Raw Normal View History

Shared coding conventions allow teams to collaborate effectively. This rule checks that labels are on lines by themselves, which makes them more immediately visible as such.
== Noncompliant Code Example
----
LBLVAL: IF COND(&ERRFLG = ' ') THEN (DO)
CHGVAR VAR(&MSG) VALUE('Validation Completed')
ENDDO
----
== Compliant Solution
----
LBLVAL:
IF COND(&ERRFLG = ' ') THEN (DO)
CHGVAR VAR(&MSG) VALUE('Validation Completed')
ENDDO
----
ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]