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

39 lines
825 B
Plaintext

The use of positional notation can quickly become confusing, especially in a large or complex data structure. To keep the code clean and understandable, use length notation instead.
== Noncompliant Code Example
[source,rpg]
----
D PERSON DS QUALIFIED
* Noncompliant
D FName 1 30
D LName 31 60
----
== Compliant Solution
[source,rpg]
----
D PERSON DS QUALIFIED
D FName 30
D LName 30
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::message.adoc[]
'''
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]