Skip to content

Commit

Permalink
Update deptrac to 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusklocke committed Jun 2, 2024
1 parent e9b3300 commit b1b3a22
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 40 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ echo "Install dev dependencies ..."
docker exec -t php composer install --no-cache --no-progress

echo "Running deptrac ..."
docker exec -t php deptrac --no-progress --config-file=config/deptrac.yaml
docker exec -t php deptrac analyse --config-file config/deptrac.yaml --no-progress

echo "Testing gdpr-dump config ..."
docker exec -t php gdpr-dump config/gdpr-dump.yml > /dev/null
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
"require-dev": {
"php-coveralls/php-coveralls": "^2.7",
"phpunit/phpunit": "^11.1.1",
"qossmic/deptrac-shim": "^1.0.2"
"qossmic/deptrac": "^2.0.0"
}
}
53 changes: 21 additions & 32 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions config/deptrac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ parameters:
layers:
- name: Application
collectors:
- type: className
regex: .*HexagonalPlayground\\Application\\.*
- type: class
value: .*HexagonalPlayground\\Application\\.*
- name: Domain
collectors:
- type: className
regex: .*HexagonalPlayground\\Domain\\.*
- type: class
value: .*HexagonalPlayground\\Domain\\.*
- name: Infrastructure
collectors:
- type: className
regex: .*HexagonalPlayground\\Infrastructure\\.*
- type: class
value: .*HexagonalPlayground\\Infrastructure\\.*
ruleset:
Application:
- Domain
Expand Down

0 comments on commit b1b3a22

Please sign in to comment.