rspec/rules/S2519/rule.adoc
2021-01-27 13:42:22 +01:00

33 lines
506 B
Plaintext

Shared coding conventions allow teams to collaborate efficiently. This rule checks that all record field names match the provided regular rexpression.
== Noncompliant Code Example
With the default regular expression ``++[a-zA-Z](_?+[a-zA-Z0-9])*+++``:
----
DECLARE
TYPE my_type IS RECORD(
foo__bar PLS_INTEGER -- Non-Compliant
);
BEGIN
NULL;
END;
/
----
== Compliant Solution
----
DECLARE
TYPE my_type IS RECORD(
foo_bar PLS_INTEGER -- Compliant
);
BEGIN
NULL;
END;
/
----