Charter · Verifier rules

dead-deny (error)

Error. Reported when a deny pattern matches no existing id, usually a typo. A deny that matches nothing protects nothing, so verifyCharter reports it instead of ignoring it.

Charter
{
  member: ['me.*'],
  manager: { allow: ['*'], deny: ['me.*', 'takngs'] },
}
Action ids
[
  'welcome',
  'programme',
  'seats',
  'me.tickets',
  'me.pass',
  'door.list',
  'members',
  'takings',
  'settings',
]
Reported issues
[
  {
    level: 'error',
    rule: 'dead-deny',
    detail: 'role "manager" denies "takngs" (actions) which matches nothing — silent means unprotected',
  },
]
Output matches the expected value

Runs in this page on the installed package. The input and the expected output are defined by the example.