rspec/rules/S2802/rpg/rule.adoc
Fred Tingaud 16f6c0aecf
Inline adoc when include has no additional value (#1940)
Inline adoc files when they are included exactly once.

Also fix language tags because this inlining gives us better information
on what language the code is written in.
2023-05-25 14:18:12 +02:00

42 lines
579 B
Plaintext

== Why is this an issue?
There's no need to repeat the program name in the free-format definition of an external program.
=== Noncompliant code example
[source,rpg]
----
DCL-PR PGM001 EXTPGM('PGM001');
END-PR;
----
=== Compliant solution
[source,rpg]
----
DCL-PR PGM001 EXTPGM ;
END-PR;
----
or if the program is renamed
[source,rpg]
----
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[]