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]Examples
Section titled “Examples”Validate the Workspace and print its issues grouped by file, then a count and a link to each rule’s page.
archidocs checkFail on warnings as well as errors, for a CI job that keeps the Workspace clean.
archidocs check --strictPrint each issue as a GitHub Actions annotation, which a pull request shows on the line the issue is about.
archidocs check --format githubPrint the issues and a count of errors and warnings as JSON, for a script.
archidocs check --format json--format
Section titled “--format”--format text|json|github · Default: text.
Print issues as text, as JSON, or as GitHub Actions annotations.
--strict
Section titled “--strict”--strict · Off by default.
Exit 1 on warnings too, not only on errors.
Exit codes
Section titled “Exit codes”| 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.
See also
Section titled “See also”- Add a Service: ends an edit to the Model with it.
- Rename, move or remove: uses it to find every reference to an id that changed.
- Publish to GitHub Pages: runs it in CI, so a failed check publishes nothing.
- Check rules: every rule it reports, with its fix.
- How the Workspace is found: where it looks for
workspace.yaml.
Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.