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