self-relationship
An Element has a Relationship to itself.
Severity: error · Since: v1.0.0
What check reports
Section titled “What check reports”For the failing example below, archidocs check prints:
shop/services.yaml:5:13 error self-relationship Service "web" has a Relationship to itselfA Relationship says that one Element depends on another. Pointed at itself, an Element would be its own upstream and downstream, which tells a reader nothing; it is usually a to that names the wrong id.
Failing example
Section titled “Failing example”shop/services.yaml:
services: web: name: Web relationships: - to: web cart: name: CartPoint to at the Element depended on, or remove the Relationship.
shop/services.yaml:
services: web: name: Web relationships: - to: cart cart: name: CartRelated rules
Section titled “Related rules”ancestor-descendant-relationship: An Element is linked to its own ancestor or descendant.
Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.