ShtukbaseStandard
DSC-R02/norms/rules/design-components/DSC-R02.md

Este texto aún no está traducido. Debajo está el original en inglés.

Every used component exists

MUSTbloqueacomprobaciónactiva
Each id in the uses of a component header is a component with a header or a page.
Por qué: A component built from one that does not exist cannot be rendered or swapped; the catalog would show a hole, and a misspelled id is found only on screen.
Campos de la página (15)
ruleIdDSC-R02
requirementEach id in the uses of a component header is a component with a header or a page.
levelMUST
floorfalse
statusactive
spheredesign
appliesTo/design
enforcers.shtukbase/packages/design-components/checks/uses-exist.ts
enforcerKindgate
modeenforce
becauseA component built from one that does not exist cannot be rendered or swapped; the catalog would show a hole, and a misspelled id is found only on screen.
baseline0
reviewBy2027-05-29
packdesign-components
railFix the id in the uses of the header, or add the missing component.

Each id in the uses of a component header is a component that has a header in a library, or a page in /design/components.

What counts as a violation. A header lists an id that no header and no page has.

Why. A component built from one that does not exist cannot be rendered or swapped; the catalog would show a hole, and a misspelled id is found only on screen.

Run. shtuk run design-components uses-exist. A violation is a line, exit code 1.

How to fix. Fix the id in the uses of the header, or add the missing component.

El paquete Design components coloca esta página en /norms/rules/design-components/DSC-R02.md.Texto fuente