Default severity for each rule. duplicate-ids is error (a conflicting
duplicate id silently drops a label โ wrong output); no-duplicate-edges,
no-self-loop, and no-empty-labels are advisory warn; no-orphan-nodes
defaults to off (opt-in) due to false-positive risk from subgraph-only
members and legend nodes; the original four are warn except duplicate-ids.
The sequence/class rules follow the same pattern: no-activate-without-deactivate
(warn) catches dangling activation bars in sequence diagrams;
prefer-explicit-participants defaults to off because Mermaid's
auto-create pattern is intentional and widely used โ opt in to enforce it;
no-duplicate-methods (warn) catches duplicate method signatures in class
diagrams.
Default severity for each rule.
duplicate-idsiserror(a conflicting duplicate id silently drops a label โ wrong output);no-duplicate-edges,no-self-loop, andno-empty-labelsare advisorywarn;no-orphan-nodesdefaults tooff(opt-in) due to false-positive risk from subgraph-only members and legend nodes; the original four arewarnexceptduplicate-ids.The sequence/class rules follow the same pattern:
no-activate-without-deactivate(warn) catches dangling activation bars in sequence diagrams;prefer-explicit-participantsdefaults tooffbecause Mermaid's auto-create pattern is intentional and widely used โ opt in to enforce it;no-duplicate-methods(warn) catches duplicate method signatures in class diagrams.