no-templates
"The workspace has no template to check at all."
Venue: check — The workspace has no template to check at all.
templates/ must hold at least one template folder — for the run you asked for:
template-kit check(no argument, from the workspace root):templates/has no folder in it at all.template-kit check --all: same — no template folder exists to check.template-kit check <name>(or a barecheckrun from inside a template’s own folder): that one named template does not exist. (A folder that exists but is missing itstemplate.tsis a different, more specific failure —template-invalid— because a folder undertemplates/is a template whatever else is wrong with it.)
This is checked once per run, scoped to the workspace, not to any one template.
Reason
Section titled “Reason”every() over an empty set is vacuously true. A check run that selected zero templates
and reported “check passed” would exit 0 having run not one gate — indistinguishable from
a workspace that passed every rule, when in truth no rule ran at all. Anything that
re-runs this command on your behalf (an ingest pipeline, a CI step) would accept that
silence as a clean submission.
Reporting a diagnostic instead means “nothing to check” is a failure your run surfaces, not a false green light.
Add a template: templates/<key>/ with a template.ts declaring its section
composition, and a sections/ folder holding the sections it composes. If you meant to
check a specific template and named it wrong, or ran check from a folder that isn’t a
template folder, correct the name or your working directory instead.
Before
Section titled “Before”my-workspace/ package.json package-lock.json templates/ ← empty$ template-kit check✗ workspace — 1 problem(s) [template-kit/no-templates] This workspace has no template to check: templates/ holds no template folder. fix: Add a template: templates/<key>/ with a template.ts declaring its section composition and a sections/ folder holding the sections it composes.my-workspace/ package.json package-lock.json templates/ acme-modern/ template.ts sections/ hero/ Renderer.tsx section.ts fixtures.ts$ template-kit check✓ acme-moderncheck passedSee also
Section titled “See also”template-invalid— the check that takes over once a template folder exists, on whether itstemplate.tsis present and correct.