Skip to content

Commit 15a7f97

Browse files
committed
Update deptrac
1 parent 95ec165 commit 15a7f97

File tree

3 files changed

+103
-101
lines changed

3 files changed

+103
-101
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
/composer.lock
44
/tests/phar/.phpunit.result.cache
55
/vendor/
6+
/.deptrac.cache
67
/.php_cs.cache
78
/.phpunit.result.cache

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ tools/php-cs-fixer:
101101
curl -Ls http://cs.symfony.com/download/php-cs-fixer-v2.phar -o tools/php-cs-fixer && chmod +x tools/php-cs-fixer
102102

103103
tools/deptrac:
104-
curl -Ls https://github.com/sensiolabs-de/deptrac/releases/download/0.19.1/deptrac.phar -o tools/deptrac && chmod +x tools/deptrac
104+
curl -Ls https://github.com/sensiolabs-de/deptrac/releases/download/0.24.0/deptrac.phar -o tools/deptrac && chmod +x tools/deptrac
105105

106106
tools/infection: tools/infection.pubkey
107107
curl -Ls https://github.com/infection/infection/releases/download/0.26.2/infection.phar -o tools/infection && chmod +x tools/infection

deptrac.yaml

Lines changed: 101 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -1,100 +1,101 @@
1-
paths:
2-
- ./src
3-
exclude_files: ~
4-
layers:
5-
- name: Symfony Compiler
6-
collectors:
7-
- type: className
8-
regex: ^Zalas\\Injector\\PHPUnit\\Symfony\\Compiler\\.*
9-
- name: Symfony TestCase
10-
collectors:
11-
- type: className
12-
regex: ^Zalas\\Injector\\PHPUnit\\Symfony\\TestCase\\.*
13-
- name: TestCase
14-
collectors:
15-
- type: className
16-
regex: ^Zalas\\Injector\\PHPUnit\\TestCase\\.*
17-
- name: TestListener
18-
collectors:
19-
- type: className
20-
regex: ^Zalas\\Injector\\PHPUnit\\TestListener\\.*
21-
- name: Injector Service
22-
collectors:
23-
- type: className
24-
regex: ^Zalas\\Injector\\Service\\.*
25-
- name: Injector Factory
26-
collectors:
27-
- type: className
28-
regex: ^Zalas\\Injector\\Factory\\.*
29-
- name: Psr Container
30-
collectors:
31-
- type: className
32-
regex: ^Psr\\Container\\.*
33-
- name: Symfony Config
34-
collectors:
35-
- type: className
36-
regex: ^Symfony\\Component\\Config\\.*
37-
- name: Symfony DependencyInjection
38-
collectors:
39-
- type: className
40-
regex: ^Symfony\\Component\\DependencyInjection\\.*
41-
- name: Symfony HttpKernel
42-
collectors:
43-
- type: className
44-
regex: ^Symfony\\Component\\HttpKernel\\.*
45-
- name: Symfony Service Contracts
46-
collectors:
47-
- type: className
48-
regex: ^Symfony\\Contracts\\Service\\.*
49-
- name: PHPUnit
50-
collectors:
51-
- type: className
52-
regex: ^PHPUnit\\Framework\\.*
53-
- name: Other Vendors
54-
collectors:
55-
- type: bool
56-
must:
57-
# must be outside of global namespace
58-
- type: className
59-
regex: '[\\]+'
60-
must_not:
61-
# must not be one of the known vendors
62-
- type: className
63-
regex: ^Zalas\\Injector\\PHPUnit\\.*
64-
- type: className
65-
regex: ^Zalas\\Injector\\Service\\.*
66-
- type: className
67-
regex: ^Zalas\\Injector\\Factory\\.*
68-
- type: className
69-
regex: ^Psr\\Container\\.*
70-
- type: className
71-
regex: ^PHPUnit\\Framework\\.*
72-
- type: className
73-
regex: ^Symfony\\Component\\Config\\.*
74-
- type: className
75-
regex: ^Symfony\\Component\\DependencyInjection\\.*
76-
- type: className
77-
regex: ^Symfony\\Component\\HttpKernel\\.*
78-
- type: className
79-
regex: ^Symfony\\Contracts\\Service\\.*
80-
ruleset:
81-
Symfony Compiler:
82-
- Injector Factory
83-
- Injector Service
84-
- PHPUnit
85-
- TestCase
86-
- Symfony Config
87-
- Symfony DependencyInjection
88-
Symfony TestCase:
89-
- Psr Container
90-
- Symfony DependencyInjection
91-
- Symfony HttpKernel
92-
- Symfony Service Contracts
93-
TestCase:
94-
- Psr Container
95-
TestListener:
96-
- TestCase
97-
- Injector Service
98-
- Injector Factory
99-
- Psr Container
100-
- PHPUnit
1+
parameters:
2+
paths:
3+
- ./src
4+
exclude_files: []
5+
layers:
6+
- name: Symfony Compiler
7+
collectors:
8+
- type: className
9+
regex: ^Zalas\\Injector\\PHPUnit\\Symfony\\Compiler\\.*
10+
- name: Symfony TestCase
11+
collectors:
12+
- type: className
13+
regex: ^Zalas\\Injector\\PHPUnit\\Symfony\\TestCase\\.*
14+
- name: TestCase
15+
collectors:
16+
- type: className
17+
regex: ^Zalas\\Injector\\PHPUnit\\TestCase\\.*
18+
- name: TestListener
19+
collectors:
20+
- type: className
21+
regex: ^Zalas\\Injector\\PHPUnit\\TestListener\\.*
22+
- name: Injector Service
23+
collectors:
24+
- type: className
25+
regex: ^Zalas\\Injector\\Service\\.*
26+
- name: Injector Factory
27+
collectors:
28+
- type: className
29+
regex: ^Zalas\\Injector\\Factory\\.*
30+
- name: Psr Container
31+
collectors:
32+
- type: className
33+
regex: ^Psr\\Container\\.*
34+
- name: Symfony Config
35+
collectors:
36+
- type: className
37+
regex: ^Symfony\\Component\\Config\\.*
38+
- name: Symfony DependencyInjection
39+
collectors:
40+
- type: className
41+
regex: ^Symfony\\Component\\DependencyInjection\\.*
42+
- name: Symfony HttpKernel
43+
collectors:
44+
- type: className
45+
regex: ^Symfony\\Component\\HttpKernel\\.*
46+
- name: Symfony Service Contracts
47+
collectors:
48+
- type: className
49+
regex: ^Symfony\\Contracts\\Service\\.*
50+
- name: PHPUnit
51+
collectors:
52+
- type: className
53+
regex: ^PHPUnit\\Framework\\.*
54+
- name: Other Vendors
55+
collectors:
56+
- type: bool
57+
must:
58+
# must be outside of global namespace
59+
- type: className
60+
regex: '[\\]+'
61+
must_not:
62+
# must not be one of the known vendors
63+
- type: className
64+
regex: ^Zalas\\Injector\\PHPUnit\\.*
65+
- type: className
66+
regex: ^Zalas\\Injector\\Service\\.*
67+
- type: className
68+
regex: ^Zalas\\Injector\\Factory\\.*
69+
- type: className
70+
regex: ^Psr\\Container\\.*
71+
- type: className
72+
regex: ^PHPUnit\\Framework\\.*
73+
- type: className
74+
regex: ^Symfony\\Component\\Config\\.*
75+
- type: className
76+
regex: ^Symfony\\Component\\DependencyInjection\\.*
77+
- type: className
78+
regex: ^Symfony\\Component\\HttpKernel\\.*
79+
- type: className
80+
regex: ^Symfony\\Contracts\\Service\\.*
81+
ruleset:
82+
Symfony Compiler:
83+
- Injector Factory
84+
- Injector Service
85+
- PHPUnit
86+
- TestCase
87+
- Symfony Config
88+
- Symfony DependencyInjection
89+
Symfony TestCase:
90+
- Psr Container
91+
- Symfony DependencyInjection
92+
- Symfony HttpKernel
93+
- Symfony Service Contracts
94+
TestCase:
95+
- Psr Container
96+
TestListener:
97+
- TestCase
98+
- Injector Service
99+
- Injector Factory
100+
- Psr Container
101+
- PHPUnit

0 commit comments

Comments
 (0)