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

23 lines
463 B
Plaintext

Shared naming conventions allow teams to collaborate efficiently. This rule checks that all [report/]program names match a provided regular expression.
== Noncompliant Code Example
With the regular expression ``++^([A-Z0-9_]*|[a-z0-9_]*)$++``:
[source,text]
----
IDENTIFICATION DIVISION.
PROGRAM-ID. MY-PROGRAM. *> Noncompliant
----
== Compliant Solution
[source,text]
----
IDENTIFICATION DIVISION.
PROGRAM-ID. MY_PROGRAM.
----