const_mutation
Updatedpedanticoff until [lint] strict
A write into the value a const holds.
Pedantic. const freezes the binding, not the value: const LIMITS = { hp = 100 } still allows LIMITS.hp = 1, and NAMES:push(x) still grows the array. The lint reports a field assignment and an index assignment, so a name written as a constant reads as one. It does not judge a method call: a name such as set or push does not say whether the method writes, so NAMES:push(x) passes. A guard, if not const x = f() then return end, binds x for the rest of the block, and the lint reads the writes after it.
Set its level in the [lint] table of alloy.toml, or for one file with --@alloy-lint.
