Back

LL052

Too many local variables

Object Pascal — Delphi & Free Pascal
Warning
Maintainability

Methods with many local variables are hard to follow and often need decomposition

methods with many local variables are hard to follow and often need decomposition.

Why this severity

methods with many local variables are hard to follow and often need decomposition.


Known false positives

generated code or methods that destructure a large external record.

Remediation example

procedure ProcessOrder(const Order: TOrder);
begin
  ValidateOrder(Order);
  PersistOrder(Order);
end;

Reconnecting… Connection lost. Reload