rspec/rules/S1544/rule.adoc

21 lines
435 B
Plaintext
Raw Normal View History

2020-06-30 12:47:33 +02:00
Shared naming conventions allow teams to collaborate efficiently. This rule checks that all [report/]program names match a provided regular expression.
== Noncompliant Code Example
2021-01-27 13:42:22 +01:00
With the regular expression ``++^([A-Z0-9_]*|[a-z0-9_]*)$++``:
2020-06-30 12:47:33 +02:00
----
IDENTIFICATION DIVISION.
PROGRAM-ID. MY-PROGRAM. *> Noncompliant
----
== Compliant Solution
----
IDENTIFICATION DIVISION.
PROGRAM-ID. MY_PROGRAM.
----