LL054
Duplicate string literal
Object Pascal — Delphi & Free Pascal
Info
Maintainability
Repeated literals make changes error-prone and increase the risk of inconsistency
repeated literals make changes error-prone and increase the risk of inconsistency.
Why this severity
repeated literals make changes error-prone and increase the risk of inconsistency.
Known false positives
short common literals like field separators used across unrelated contexts.
Remediation example
const COL_NAME = 'Name'; // then use COL_NAME everywhere