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 14:49:38 +02:00
|
|
|
|
2020-06-30 10:16:44 +02:00
|
|
|
----
|
|
|
|
DECLARE
|
|
|
|
goodVariable PLS_INTEGER; -- Compliant
|
|
|
|
badVariable_ PLS_INTEGER; -- Non-Compliant
|
|
|
|
BEGIN
|
|
|
|
NULL;
|
|
|
|
END;
|
|
|
|
/
|
|
|
|
----
|