Back

LL013

Magic number

Object Pascal — Delphi & Free Pascal
Warning
Maintainability

Unnamed literals obscure intent and make policy changes harder

unnamed literals obscure intent and make policy changes harder.

Why this severity

unnamed literals obscure intent and make policy changes harder.


Known false positives

obvious universal literals such as 0 or 1 in simple expressions.

Remediation example

const
  MaxRetryCount = 3;

Reconnecting… Connection lost. Reload