Skip to main content

CONTROL_SPELLINGS

Constant CONTROL_SPELLINGS 

Source
pub const CONTROL_SPELLINGS: &[ControlSpelling];
Expand description

What: Every control spelling. &[ControlSpelling] is a borrowed, read-only list (siblings: Vec<T>, owned and growable; [T; N], fixed length in the type). Why: One --no-enforce-<policy id> per shipped policy, the three spellings that predate policy ids, the keep-going flag and the worktree-copy opt-out. A compiled-in list cannot be reordered or extended at run time. Gotcha: wrapper_controls_tests.rs pins that every shipped policy has exactly the spelling --no-enforce- followed by its registry name.

In TS you’d write (pseudocode):

const CONTROL_SPELLINGS: readonly ControlSpelling[] = [ ... ];