rspec/rules/S2311/pli/rule.adoc

37 lines
592 B
Plaintext
Raw Normal View History

== Why is this an issue?
2021-04-28 16:49:39 +02:00
For better readability, it is preferable to use ``++DECLARE++`` instead of the unpronounceable ``++DCL++`` abbreviation.
=== Noncompliant code example
2021-04-28 16:49:39 +02:00
2022-02-04 17:28:24 +01:00
[source,pli]
2021-04-28 16:49:39 +02:00
----
foo: proc options(main);
dcl i fixed decimal init (0); /* Noncompliant */
end;
----
=== Compliant solution
2021-04-28 16:49:39 +02:00
2022-02-04 17:28:24 +01:00
[source,pli]
2021-04-28 16:49:39 +02:00
----
foo: proc options(main);
declare i fixed decimal init (0); /* Compliant */
end;
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Remove this use of "DCL"
endif::env-github,rspecator-view[]