Back

LL053

Complex boolean expression

Object Pascal — Delphi & Free Pascal
Warning
Maintainability

Boolean expressions with many operators are hard to read and error-prone to modify

boolean expressions with many operators are hard to read and error-prone to modify.

Why this severity

boolean expressions with many operators are hard to read and error-prone to modify.


Known false positives

well-documented compound conditions with clear intent.

Remediation example

function IsEligible(const C: TCustomer): Boolean;
begin
  Result := C.IsActive and C.HasVerifiedEmail;
end;

Reconnecting… Connection lost. Reload