Back

LL014

Global mutable state

Object Pascal — Delphi & Free Pascal
Warning
Design

Shared mutable globals create hidden coupling and race risks

shared mutable globals create hidden coupling and race risks.

Why this severity

shared mutable globals create hidden coupling and race risks.


Known false positives

single-threaded legacy startup state during migration.

Remediation example

type
  TAppContext = class
  private
    FCurrentUserId: string;
  end;

Reconnecting… Connection lost. Reload