Skip to main content
Version: 0.4.1

KQ274 — a constant's name is neither a stage nor a period

Error · constant-name-shape · Policies

A constant's name is capitals, digits and underscores, starting with a capital, and is neither a stage nor shaped as a period, so a value is never ambiguous.

A constant's name is a stage, such as PRD, looks like a period, such as P90D, or isn't capitals, digits and underscores starting with a capital. Either would make a value read two ways. Pick another name: const PROD_ROTATION = P1D, not const PRD = P1D.

Examples​

PRD is a stage, so a constant of that name raises KQ274:

ecosystem shop "Shop" { const PRD = P1D }

Named PROD_ROTATION, it raises nothing:

ecosystem shop "Shop" { const PROD_ROTATION = P1D }

© 2026 Extenza Works. All rights reserved.