Check rules
archidocs check reports each issue with one of these rule ids, and links to the rule’s page. Errors fail the check; warnings fail it only with --strict.
| Rule | Severity | Meaning |
|---|---|---|
yaml-syntax |
error | A file can’t be parsed as YAML. |
unknown-field |
error | A key isn’t in the schema. |
missing-field |
error | A required field is absent. |
invalid-value |
error | A value has the wrong type, a bad enum value or a malformed URL. |
nested-project |
error | A project.yaml sits inside another Project’s folder. |
file-outside-project |
error | A model file is under no Project. |
duplicate-project-id |
error | Two Projects share an id. |
definition-outside-workspace |
error | teams or environments declared outside workspace.yaml. |
unknown-team |
error | An owner, or a Saved View’s {team} selector or Team Lens, names no Team. |
duplicate-id |
error | An Element or Deployment Target id is declared twice in a Project, across files too, whatever its kind or nesting. |
invalid-nesting |
error | System > Service > Component is broken, by nesting or in:. |
external-with-components |
error | An External System or Service declares Components. |
unknown-element |
error | A reference names no Element: in to, via, in, a Deployment’s service, or a Saved View’s selectors, expand, collapse or Lens. |
unknown-project |
error | A project: prefix names no Project. |
own-project-prefix |
error | A Project qualifies its own ids. |
duplicate-relationship-id |
error | A Relationship id repeats in a Project. |
self-relationship |
error | An Element has a Relationship to itself. |
person-as-provider |
error | The provider of a Relationship is a Person. |
ancestor-descendant-relationship |
error | An Element is linked to its own ancestor or descendant. |
via-on-sync |
error | via or channel on a sync Relationship. |
via-not-broker |
error | via names a Service that isn’t type: broker. |
duplicate-deployment |
error | The same Service, Environment and Target appear twice. |
unknown-environment |
error | A Deployment, or a Saved Deployment View, names no Environment. |
unknown-target |
error | A Deployment, or a Saved Deployment View’s targets, names no Deployment Target. |
wrong-kind |
error | An id resolves to a kind the field doesn’t accept, such as a Deployment’s service naming a Component or System, or a Relationship’s via naming something other than a Service. |
oversized-view |
warning | A View has more than 150 nodes, too many for a readable diagram. A Generated View is reported at its System or Service, or at workspace.yaml for the Landscapes; a Saved View at its id. |
duplicate-view-id |
error | A Saved View id repeats in a Project, across files too. |
missing-step |
error | A Dynamic View Step has no Relationship or derived edge between from and to (nor a via subscription of to to from), or the named relationship doesn’t connect them. |
ambiguous-step |
error | Several Relationships match a Dynamic View Step (several between the pair, or both a call and an event) and no relationship names one. |
return-without-relationship |
error | A Dynamic View return Step has no Relationship the other way, from its to to its from. |
return-on-async |
error | A Dynamic View return Step resolves to an async Relationship, which has no reply. |
ancestor-descendant-participants |
error | An Element and its own ancestor are both participants of a Dynamic View. |
target-outside-environment |
error | A Saved Deployment View’s targets entry has no Deployment in the View’s environment, on it or on any Target inside it. |
bad-expand |
error | A Saved View’s expand or collapse id is not a node of the View once collapsed to its level, or has no children. |
empty-view |
warning | A Saved View resolves to no nodes. |
unresolved-path |
warning | A Saved View’s path selector, or path Lens, finds no path between its two Elements. |
invalid-adr-frontmatter |
error | An ADR has no frontmatter, frontmatter that isn’t valid YAML, or a field that is unknown, missing (status, date) or invalid, such as a status outside proposed, accepted, rejected, deprecated and superseded. |
missing-adr-title |
error | An ADR’s body has no # heading to take its title from. |
bad-adr-filename |
error | A file in a Project’s adr/ folder isn’t named NNNN-slug.md (and isn’t template.md). |
duplicate-adr-number |
error | Two ADRs in a Project share a number, as when two pull requests each take the next free one. |
unknown-adr-link |
error | An ADR’s elements names no Element or Deployment Target, its views no Saved View, or its supersedes no ADR. |
hand-written-superseded |
error | An ADR’s status is written as superseded; that status is derived once an accepted ADR lists it in supersedes. |
supersedes-cycle |
error | ADRs supersede each other in a cycle, directly or through others. Reported once, at the cycle’s last file. |
superseded-twice |
warning | An ADR is superseded by more than one accepted ADR. Reported at the last of them. |
supersedes-unaccepted |
warning | An ADR supersedes one that isn’t accepted or deprecated, such as a proposed or rejected ADR. |