This repository provides a deptrac.yaml
configuration file designed to enforce architectural rules within Spryker projects using Deptrac. Deptrac is a static code analysis tool that helps maintain a clean and manageable codebase by detecting violations of predefined architectural principles.
Deptrac analyzes dependencies between different parts of your application (layers) and ensures they adhere to defined rules. This configuration helps enforce Spryker's recommended architectural patterns.
- Enforces Spryker's architectural best practices: Promotes separation of concerns and well-defined module boundaries.
- Prevents architectural drift: Detects unwanted dependencies, ensuring long-term maintainability.
- Improves code understanding: Highlights potential dependency issues and facilitates better comprehension of code structure.
- Composer install deptrac:
composer require valantic-spryker-eco/deptrac --dev
- Run
deptrac -c vendor/valantic-spryker-eco/deptrac/deptrac.yaml
to analyze your project.