LL064
Empty string comparison
Object Pascal — Delphi & Free Pascal
Info
Style
Comparing with '' is less intention-revealing than Length or IsEmpty checks
comparing with '' is less intention-revealing than Length or IsEmpty checks.
Why this severity
comparing with '' is less intention-revealing than Length or IsEmpty checks.
Known false positives
patterns where '' comparison is a project-wide convention.
Remediation example
if S.IsEmpty then HandleEmpty; // instead of: if S = '' then