No rule selected
G-7250 – Never use RETURN in package initialization block.
The purpose of the initialization block of a package body is to set initial values of the global variables of the package (initialize the package state). Although `return` is syntactically allowed in this block, it makes no sense. If it is the last keyword of the block, it is superfluous. If it is not the last keyword, then all code after the `return` is unreachable and thus dead code.
Tags: Stored Object, Performance.
Quality area: Reliability. Severity: Major. Fixing time: Local-medium.
Press p or n to quickly navigate to the previous/next rule.
