这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ tools/php-cs-fixer:
curl -Ls https://cs.symfony.com/download/php-cs-fixer-v3.phar -o tools/php-cs-fixer && chmod +x tools/php-cs-fixer

tools/deptrac:
curl -Ls https://github.com/qossmic/deptrac/releases/download/1.0.2/deptrac.phar -o tools/deptrac && chmod +x tools/deptrac
curl -Ls https://github.com/qossmic/deptrac/releases/download/1.0.2/deptrac.phar.asc -o tools/deptrac.asc
ln -sf ../vendor/bin/deptrac tools/deptrac

tools/box:
curl -Ls https://github.com/humbug/box/releases/download/4.2.0/box.phar -o tools/box && chmod +x tools/box
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"require-dev": {
"phpunit/phpunit": "^10.4",
"zalas/phpunit-globals": "^3.2",
"infection/infection": "^0.29"
"infection/infection": "^0.29",
"deptrac/deptrac": "^3.0"
},
"autoload": {
"psr-4": {
Expand Down
44 changes: 22 additions & 22 deletions deptrac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,47 +5,47 @@ parameters:
layers:
- name: Cli
collectors:
- type: className
regex: ^Zalas\\Toolbox\\Cli\\.*
- type: classLike
value: ^Zalas\\Toolbox\\Cli\\.*
- name: Json
collectors:
- type: className
regex: ^Zalas\\Toolbox\\Json\\.*
- type: classLike
value: ^Zalas\\Toolbox\\Json\\.*
- name: Runner
collectors:
- type: className
regex: ^Zalas\\Toolbox\\Runner\\.*
- type: classLike
value: ^Zalas\\Toolbox\\Runner\\.*
- name: Tool
collectors:
- type: className
regex: ^Zalas\\Toolbox\\Tool\\.*
- type: classLike
value: ^Zalas\\Toolbox\\Tool\\.*
- name: UseCase
collectors:
- type: className
regex: ^Zalas\\Toolbox\\UseCase\\.*
- type: classLike
value: ^Zalas\\Toolbox\\UseCase\\.*
- name: Psr Container
collectors:
- type: className
regex: ^Psr\\Container\\.*
- type: classLike
value: ^Psr\\Container\\.*
- name: Symfony Console
collectors:
- type: className
regex: ^Symfony\\Component\\Console\\.*
- type: classLike
value: ^Symfony\\Component\\Console\\.*
- name: Other Vendors
collectors:
- type: bool
must:
# must be outside of global namespace
- type: className
regex: '[\\]+'
- type: classLike
value: '[\\]+'
must_not:
# must not be one of the known vendors
- type: className
regex: ^Zalas\\Toolbox\\(Cli|Json|Runner|Tool|UseCase)\\.*
- type: className
regex: ^Psr\\Container\\.*
- type: className
regex: ^Symfony\\Component\\Console\\.*
- type: classLike
value: ^Zalas\\Toolbox\\(Cli|Json|Runner|Tool|UseCase)\\.*
- type: classLike
value: ^Psr\\Container\\.*
- type: classLike
value: ^Symfony\\Component\\Console\\.*
ruleset:
Cli:
- Tool
Expand Down
8 changes: 3 additions & 5 deletions resources/architecture.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@
{
"name": "deptrac",
"summary": "Enforces dependency rules between software layers",
"website": "https://github.com/qossmic/deptrac",
"website": "https://github.com/deptrac/deptrac",
"command": {
"phive-install": {
"alias": "deptrac",
"bin": "%target-dir%/deptrac",
"sig": "D4F06E96D1BD037B"
"composer-global-install": {
"package": "deptrac/deptrac"
}
},
"test": "deptrac list",
Expand Down