rspec/rules/S117/plsql/rule.adoc

16 lines
381 B
Plaintext
Raw Normal View History

2020-06-30 10:16:44 +02:00
Shared coding conventions allow teams to collaborate efficiently. This rule checks that all variable names match the provided regular expression.
== Noncompliant Code Example
2020-12-23 14:59:06 +01:00
With the default regular expression ``[a-zA-Z]([a-zA-Z0-9_]*[a-zA-Z0-9])?``:
2020-06-30 10:16:44 +02:00
----
DECLARE
goodVariable PLS_INTEGER; -- Compliant
badVariable_ PLS_INTEGER; -- Non-Compliant
BEGIN
NULL;
END;
/
----