Skip to content

UNI009: Cyclic dependency

What and why

Type participates in a dependency cycle.

Cyclic dependencies prevent clean layering and complicate testing.

How to fix: break cycles with interfaces, events, or dependency inversion.

Fix guidance

Break the dependency cycle with interfaces, events, or restructuring.

Tags

maintainability

Suppression

Inline suppression is not supported for UNI009 because dependency cycles have no single source location. Disable it project-wide with "rules": { "UNI009": "off" } in .unilyze.json.