Code Inspections in Oracle
This topic lists all PhpStorm code inspections available in Oracle.
You can toggle specific inspections or change their severity level on the Editor | Inspections page of the IDE settings Ctrl+Alt+S.
Inspection | Description | Default Severity |
---|---|---|
Reports declarations of procedures and functions that are missing their implementation in code. DECLARE PROCEDURE foo(a int, b varchar2);
BEGIN
NULL;
END; The foo procedure is declared but is missing implementation. We can add the implementation to get rid of the error. DECLARE PROCEDURE foo(a int, b varchar2);
PROCEDURE foo(a int, b varchar2) IS
BEGIN
NULL;
END;
BEGIN
NULL;
END; | Error | |
Reports package and object type specifications that are missing body declarations. CREATE OR REPLACE PACKAGE ppp IS
FUNCTION foo(a INT) RETURN INT;
END; | Warning | |
Reports invalid cases of subprogram overloading in Oracle. DECLARE
SUBTYPE fff IS BINARY_INTEGER;
SUBTYPE ggg IS NATURAL;
PROCEDURE foo (a IN ggg) IS BEGIN NULL; END;
PROCEDURE foo (a IN fff) IS BEGIN NULL; END;
BEGIN
NULL;
END; You cannot overload subprograms which parameters differ only in subtypes. For example, you cannot overload procedures where one accepts a BINARY INTEGER parameter and the other accepts a NATURAL parameter. For more information about restrictions on procedure overloading, see Restrictions on Overloading at docs.oracle.com. | Warning |