rspec/rules/S2519/rule.adoc

33 lines
506 B
Plaintext
Raw Normal View History

2020-06-30 12:48:07 +02:00
Shared coding conventions allow teams to collaborate efficiently. This rule checks that all record field names match the provided regular rexpression.
== Noncompliant Code Example
2021-01-27 13:42:22 +01:00
With the default regular expression ``++[a-zA-Z](_?+[a-zA-Z0-9])*+++``:
2020-06-30 12:48:07 +02:00
----
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;
/
----