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.
{ usher: ['door.*', 'door'] }['door', 'door.list']
[
{
level: 'error',
rule: 'leaves-only',
detail: 'id "door" is a namespace of "door.list" — namespaces are never actions',
},
]Runs in this page on the installed package. The input and the expected output are defined by the example.