Releases: Chetkov/php-clean-architecture
Improved public/private elements
bugfix
Reports/checks by paths list
Partial reports and checks against a list of paths. It can be useful if you want to check for architectural problems or build a dependency graph and analyze not for the entire project, but for some part of it (for example, according to the list of changed files when viewing a merge request). To do this, you can set a list of allowed paths as the value of the PHPCA_ALLOWED_PATHS environment variable.
Usage example:
export PHPCA_ALLOWED_PATHS=`git diff master --name-only` PHPCA_REPORTS_DIR='phpca-report'; vendor/bin/phpca-build-reports {?path/to/phpca-config.php}
Bug fixes
Allowed state + a lot of small improvements
Allowed state - a feature that allows you to save the current state of the project, which will make it possible to ignore the warnings thrown out regarding the pre-existing code. This should simplify the process of connecting this tool to working projects that already have problems that cannot be solved at once. This will allow you to control the configured restrictions when writing new code, but ignore them relative to the old one.
Annotations parsing strategies improvements
- improved: ThrowAnnotationsParsingStrategy
- added stategy for parsing annotations: method, param, property, return
Reports directory cleaning before reports building
Очистка каталога отчетов перед повторной генерацией
Module report improved
- добавлен список элементов внешнего компонента, от которых зависят элементы текущего компонента
- исправлен баг подсветки недопустимых зависимостей
some improvements
Добавлен конфиг управляющий включением/отключением анализа содержимого конкретных компонентов
Описание методов Module
Описание методов UnitOfCode
Исправление ReflectionDependenciesFinder (для совместимости с версиями до 7.4)
Вынесение регулярок в стратегии + перенос CodeParsingDependenciesFinder в другой namespace
Ограничена возможность настройки для модулей allowed_dependencies совместно с forbidden_dependencies и public_elements совместно с private_elements
Added ability to introduce custom reports
0.0.5 fix of phpdoc