Charter · Verifier rules

leaves-only (error)

Error. Reported when one action id is a namespace of another, as with door and door.list: an id that other ids are built on is a namespace, and a namespace is never an action. With both as actions, door.* would no longer mean every action under door.

Charter
{ usher: ['door.*', 'door'] }
Action ids
['door', 'door.list']
Reported errors
[
  {
    level: 'error',
    rule: 'leaves-only',
    detail: 'id "door" is a namespace of "door.list" — namespaces are never actions',
  },
]
Output matches the expected value

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