doctrine policy
3 checks
Clean Architecture Doctrine
doctrine-clean-arch
Architecture doctrine overlay for repositories that follow Clean / Hexagonal Architecture. It adds checks that keep business rules in explicit use cases, keep boundary ports owned by the inner policy layer, and keep boundary data framework-free. Enable it on top of the relevant lang-* (or shared-foundation) policy when the repository commits to this architecture; do not enable it together with doctrine-vertical-slice, which expresses an alternative doctrine.
Doctrine Checks
Any app type
- clean-arch-002 — Application business rules live in explicit use cases.
- clean-arch-003 — Boundary ports are owned by the inner policy layer.
- clean-arch-004 — Boundary data is simple, isolated, and framework-free.