Skip to content

Commit

Permalink
Add deptract configuration for content (#60)
Browse files Browse the repository at this point in the history
* Add deptract configuration for content

* Add conflict to doctrine/persistence 1.3.2
  • Loading branch information
alexander-schranz authored and niklasnatter committed Dec 13, 2019
1 parent 8ac7361 commit 7b964c3
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
# System files
.DS_Store

# Deptract
.deptrac.cache

# Node
node_modules/
package-lock.json
Expand Down
12 changes: 9 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"coduo/php-matcher": "^3.2",
"doctrine/doctrine-fixtures-bundle": "^2.0 || ^3.0",
"handcraftedinthealps/code-coverage-checker": "^0.1",
"handcraftedinthealps/zendsearch": "@dev",
"jackalope/jackalope-doctrine-dbal": "^1.3.4",
"jangregor/phpstan-prophecy": "^0.4",
"massive/build-bundle": "^0.4.0",
Expand All @@ -40,13 +41,16 @@
"phpstan/phpstan-shim": "^0.11",
"phpstan/phpstan-symfony": "^0.11",
"phpstan/phpstan-webmozart-assert": "^0.11",
"sensiolabs-de/deptrac-shim": "^0.6.0",
"symfony/browser-kit": "^4.3",
"symfony/dotenv": "^4.3",
"symfony/monolog-bundle": "^3.1",
"symfony/phpunit-bridge": "^4.3",
"symfony/templating": "^4.3",
"thecodingmachine/phpstan-strict-rules": "^0.11",
"handcraftedinthealps/zendsearch": "@dev"
"thecodingmachine/phpstan-strict-rules": "^0.11"
},
"conflict": {
"doctrine/persistence": "1.3.2"
},
"config": {
"sort-packages": true
Expand All @@ -67,7 +71,8 @@
"@lint-composer",
"@phpstan",
"@lint-yaml",
"@lint-schema"
"@lint-schema",
"@deptract"
],
"test": [
"@phpunit"
Expand All @@ -81,6 +86,7 @@
"lint-composer": "@composer validate --strict",
"lint-yaml": "Tests/Application/bin/adminconsole lint:yaml Resources/config",
"lint-schema": "Tests/Application/bin/adminconsole doctrine:schema:validate",
"deptract": "vendor/bin/deptrac",
"phpstan": [
"Tests/Application/bin/adminconsole cache:warmup --env test",
"vendor/bin/simple-phpunit install",
Expand Down
31 changes: 31 additions & 0 deletions depfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
paths:
- ./Content

layers:
- name: UserInterface
collectors:
- type: directory
regex: UserInterface/.*
- name: Infrastructure
collectors:
- type: directory
regex: Infrastructure/.*
- name: Application
collectors:
- type: directory
regex: Application/.*
- name: Domain
collectors:
- type: directory
regex: Domain/.*

ruleset:
UserInterface:
- Application
- Domain
Infrastructure:
- Application
- Domain
Application:
- Domain
Domain: ~

0 comments on commit 7b964c3

Please sign in to comment.