Skip to content

archidocs check

Validate the Workspace found from the current folder and print each issue with its file, line and rule.

archidocs check [--format text|json|github] [--strict]

Validate the Workspace and print its issues grouped by file, then a count and a link to each rule’s page.

Terminal window
archidocs check

Fail on warnings as well as errors, for a CI job that keeps the Workspace clean.

Terminal window
archidocs check --strict

Print each issue as a GitHub Actions annotation, which a pull request shows on the line the issue is about.

Terminal window
archidocs check --format github

Print the issues and a count of errors and warnings as JSON, for a script.

Terminal window
archidocs check --format json

--format text|json|github · Default: text.

Print issues as text, as JSON, or as GitHub Actions annotations.

--strict · Off by default.

Exit 1 on warnings too, not only on errors.

Code Meaning
0 No errors. Warnings are printed and still exit 0, unless --strict is given.
1 The Workspace has at least one error; with --strict, at least one error or warning.
2 It could not run: an unknown flag, a flag missing its value, an unknown format, or no Workspace found.

Exit 2 prints the reason to stderr as archidocs: <message>, and after most mistakes in the command line, the usage summary.

Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.