Type to search pages and rules.

Browse pages

Validate Standards

Markdown

Name#

litespec-maintain validate checks the LiteSpec repository against its own authoring contract.

Synopsis#

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

Description#

This command is the repository gate for every page, template, and identifier under docs/. It checks page contracts and section order, atomic Standards and Convention blocks, provision identity, inline verification lines, pattern pages and their wireframes, normative-language placement, heading capitalization, and ASCII prose. It also checks 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.

Options#

OptionDefaultEffect
--root <path>the LiteSpec checkoutSelects the LiteSpec repository to read.
--warningsoffLists every occurrence of the rules that report warnings.
--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-maintain validate

Validate another checkout and list every warning occurrence:

Shell
litespec-maintain 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-maintain provisions --check

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