You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Lexicon contract: three members have zero adopters; rulePrefix is declared but unchecked #1349
declarativeRules is the awkward one: it is presented to authors as a supported way to write lint rules ("Declarative lint rules (compiled via rule())") and no shipped lexicon has ever used it. An author who follows the table gets an untrodden path.
Related: Serializer.rulePrefix is declared on every serializer and checked by nothing. k8s declares WK8 and also ships five ARGO0xx rules outside its own prefix, which is exactly the sort of thing a prefix declaration exists to prevent — forgejo wraps github's rules as WFJ-GHA0xx specifically to avoid an id collision, by convention rather than by rule.
Into the contract
For each of the three: implement it somewhere real, or remove it and the docs that advertise it. A contract member with no adopter is a claim about supported surface that no test exercises and no reviewer can evaluate.
rulePrefix gets a check: every rule and post-synth id a lexicon contributes starts with its declared prefix, with the cross-cutting core ids (COR*, EXT*) exempt. Resolve k8s's ARGO0xx under whatever that check decides.
Done when
No LexiconPlugin member is advertised without an adopter
Rule ids are verified against the declared prefix
k8s's ARGO ids are either in-prefix or explicitly exempt
Activity
feat(contract): exercise the unused plugin seams, and check rule pref…
feat(contract): exercise the unused plugin seams, and check rule pref…
docs: correct three package and editor docs against source (#1406)