Back

LL068

Excessive comments in method

Object Pascal — Delphi & Free Pascal
Info
Maintainability

Methods where over half the lines are comments often contain stale documentation

methods where over half the lines are comments often contain stale documentation.

Why this severity

methods where over half the lines are comments often contain stale documentation.


Known false positives

regulatory or compliance code requiring inline explanation.

Remediation example

procedure Calculate;
begin
  // Remove stale comments; keep code self-documenting
  Result := Price * Quantity;
end;

Reconnecting… Connection lost. Reload