rspec/rules/S2026/rpg/rule.adoc

34 lines
740 B
Plaintext
Raw Normal View History

== Why is this an issue?
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
2022-02-04 17:28:24 +01:00
[source,rpg]
----
LBLVAL: IF COND(&ERRFLG = ' ') THEN (DO)
CHGVAR VAR(&MSG) VALUE('Validation Completed')
ENDDO
----
=== Compliant solution
2022-02-04 17:28:24 +01:00
[source,rpg]
----
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[]