-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeptrac.yaml
82 lines (79 loc) · 1.96 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
deptrac:
paths:
- ./src
exclude_files:
- '#.*tests.*#'
layers:
- name: Domain
collectors:
- type: classLike
value: WMDE\\Fundraising\\SubscriptionContext\\Domain\\.*
- name: UseCase
collectors:
- type: classLike
value: WMDE\\Fundraising\\SubscriptionContext\\UseCases.*
- name: DomainValidators
collectors:
- type: classLike
value: WMDE\\Fundraising\\SubscriptionContext\\Validation.*
- name: DataAccess
collectors:
- type: classLike
value: WMDE\\Fundraising\\SubscriptionContext\\DataAccess.*
- name: ServiceInterface
collectors:
- type: interface
value: WMDE\\Fundraising\\SubscriptionContext\\Services.*
- type: interface
value: WMDE\\Fundraising\\SubscriptionContext\\Infrastructure.*
- name: Service
collectors:
- type: class
value: WMDE\\Fundraising\\SubscriptionContext\\Services.*
# Domain libraries from WMDE
- name: DomainLibrary
collectors:
- type: classNameRegex
value: /WMDE\\EmailAddress\\EmailAddress/
- type: classNameRegex
value: /WMDE\\FunValidators\\.*/
# External Vendor libraries
- name: Doctrine
collectors:
- type: classNameRegex
value: /Doctrine\\.*/
ruleset:
Domain:
- DomainLibrary
DomainValidators:
- Domain
- DomainLibrary
UseCase:
- Domain
- DataAccess
- ServiceInterface
- DomainLibrary
- DomainValidators
DataAccess:
- Domain
- DomainLibrary
- Doctrine
Service:
- DomainLibrary
- Domain
- DataAccess
- ServiceInterface
- Doctrine
ServiceInterface:
- Domain
- DomainLibrary
formatters:
graphviz:
groups:
Service:
- Service
- ServiceInterface
Vendor:
- Doctrine
- Guzzle
- Sofort