rspec/rules/S115/plsql/rule.adoc
2020-12-23 14:59:06 +01:00

26 lines
350 B
Plaintext

include::../description.adoc[]
== Noncompliant Code Example
With the default regular expression ``[a-zA-Z]([a-zA-Z0-9_]*[a-zA-Z0-9])?``:
----
DECLARE
constant_ CONSTANT PLS_INTEGER := 42; -- Noncompliant
BEGIN
NULL;
END;
/
----
== Compliant Solution
----
DECLARE
constant CONSTANT PLS_INTEGER := 42; -- Compliant
BEGIN
NULL;
END;
/
----