LL060
Multiple return points
Object Pascal — Delphi & Free Pascal
Info
Maintainability
Many return points make control flow harder to reason about and test
many return points make control flow harder to reason about and test.
Why this severity
many return points make control flow harder to reason about and test.
Known false positives
guard-clause patterns where early exits simplify the main logic.
Remediation example
function Compute(X: Integer): Integer; begin if X <= 0 then Exit(0); Result := X * 2; end;