这段内容尚未翻译,下面是英文原文。
A component library reports its health
The convention A component library has its health in this norm. The check health judges the libraries chosen on Design, or every library that holds components when none is chosen, and prints lines:
health component-library/<lib>: full (<n> components)
health component-library/<lib>: missing: <files, each with (header) or (raw colour)>
health component-library/<lib>: fallbacks: <shadcn components not in the library>
health component-library/<lib>: extra: components <own ids> | css names <names outside the contract>
Run. shtuk run design-components health; --lib <id> judges one library. The exit code is always 0: the check informs and never fails, so shtuk check shows the lines under a PASS.
What the bands mean. missing: a file with a component header that does not parse, or a CSS file with a raw colour outside the fallback of a var(). fallbacks: components of the shadcn list (lib/shadcn-names.json) the library does not have. extra: components with ids outside the shadcn list, and CSS names the library reads from the style that are neither in the token contract nor declared by the library (the --<id>-<control> properties of its own controls are not counted).
The hard checks. DSC-R01 to DSC-R04 are the gates of the same format; this norm is the report that never blocks.
/norms/rules/design-components/DSC-R05.md。源文本