Hardcoded Configuration

Kind: anti-pattern

Layer: Enforcement Core

Record: architecture:hardcoded-configuration

Severity: discouraged

Scope: semantic_consistency, state_transaction

Formed by: Embed environment, path, credential, feature, service endpoint, or policy values directly into code, then duplicate those assumptions across runtime contexts.

Canonical: Ontology

A defect in which environment, credential or policy values are written into code instead of being supplied as configuration.

Listed in Architecture principles, after Implicit Contract and before Shared Mutable State.

Refactored by

Severity

Category

Force

Detected by

Negated by

Violates

Linked from