Type to search pages and rules.

Browse pages

Validate Standards

litespec validate holds the LiteSpec repository to its own authoring contract.

Markdown

Name#

litespec validate holds the LiteSpec repository to its own authoring contract.

Synopsis#

Shell
litespec validate [--root <path>] [--warnings] [--format json] [--help]

Description#

This command is the repository gate for every page, template, and identifier under docs/. It reads page contracts and section order, atomic Standards and Convention blocks, provision identity, pattern pages and their wireframes, verification marks, and ASCII prose. It also reads internal links, manifest paths, extension declarations, and the generated provision index.

Run it after changing any page, any template, or any authoring rule.

Arguments#

None. Everything passes through options.

Options#

OptionDefaultEffect
--root <path>the LiteSpec checkout the tool ships inSelects the LiteSpec repository to read.
--warningsoffLists every occurrence of a rule the repository is still burning down.
--format jsonoffWrites one JSON object on standard output, with the errors and warnings as arrays.
--helpoffPrints the synopsis, the options, and the exit codes, then exits zero.

Exit codes#

CodeMeaning
0Every authoring check passed.
1At least one check reported a defect.
2The usage is invalid, or an input file is unreadable.

Examples#

Validate the repository from its root:

Shell
litespec validate

Validate another checkout and list every warning occurrence:

Shell
litespec validate --root ../standards --warnings

Underneath#

The provision-index comparison is separately runnable, and reports the same defect this command reports as PROVISIONS_STALE:

Shell
litespec provisions --check

The remaining checks have no separate entry point. They run only as part of this command.