rspec/rules/S2802/rpg/rule.adoc

42 lines
579 B
Plaintext
Raw Normal View History

== Why is this an issue?
2021-04-28 16:49:39 +02:00
There's no need to repeat the program name in the free-format definition of an external program.
=== Noncompliant code example
2021-04-28 16:49:39 +02:00
2022-02-04 17:28:24 +01:00
[source,rpg]
2021-04-28 16:49:39 +02:00
----
DCL-PR PGM001 EXTPGM('PGM001');
END-PR;
----
=== Compliant solution
2021-04-28 16:49:39 +02:00
2022-02-04 17:28:24 +01:00
[source,rpg]
2021-04-28 16:49:39 +02:00
----
DCL-PR PGM001 EXTPGM ;
END-PR;
----
or if the program is renamed
2022-02-04 17:28:24 +01:00
[source,rpg]
2021-04-28 16:49:39 +02:00
----
DCL-PR TheProgram EXTPGM('PGM001');
END-PR;
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Remove "xxx" at position n.
endif::env-github,rspecator-view[]