LL023
Boolean literal comparison
Object Pascal — Delphi & Free Pascal
Info
Style
Comparing to True/False is redundant and reduces readability
comparing to True/False is redundant and reduces readability.
Why this severity
comparing to True/False is redundant and reduces readability.
Known false positives
comparisons against tri-state values where explicit True check differs from truthy.
Remediation example
if Active then DoWork; // instead of: if Active = True then