no-invalid-clamp Disallow clamp calls with invalid constant bounds A clamp traps when its lower bound exceeds its upper bound or either bound is NaN. Instead, you MUST pass ordered bounds that are not NaN. - Category: correctness - Level: error - Fix: none - Scope: module Reported function bounded(value: int32): int32 { return value.clamp(10, 0); } Accepted function bounded(value: int32): int32 { return value.clamp(0, 10); } language/linter/src/rules/correctness/noinvalidclamp.rs:6