-
Notifications
You must be signed in to change notification settings - Fork 3
/
deptrac.yaml
66 lines (63 loc) · 1.8 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
parameters:
paths:
- src
layers:
# Infrastructure
- name: Vendor Infrastructure
collectors:
- type: className
regex: ^Redis
- type: className
regex: .*EntityManager.*
- type: className
regex: .*EntityRepository.*
- type: className
regex: .*ObjectManager.*
- type: className
regex: .*ObjectRepository.*
# Layers
- name: UserInterface
collectors:
- type: directory
regex: UserInterface/.*
- name: Infrastructure
collectors:
- type: directory
regex: Infrastructure/.*
- name: Application
collectors:
- type: directory
regex: Application\/((?!ProcessManager).*)/.*
- name: ProcessManager
collectors:
- type: directory
regex: Application/ProcessManager/.*
- name: Domain
collectors:
- type: directory
regex: Code\/Domain\/((?!Event).*)\/.* # events are excluded because they are accessible by all
- name: Event
collectors:
- type: directory
regex: Code\/Domain\/Event\/.*
ruleset:
# Ruleset
UserInterface:
- Application
- Domain
- Infrastructure
Infrastructure:
- Vendor Infrastructure
- Application
- Domain
Application:
- Domain
- Event
ProcessManager:
- Domain
- Application
# All Events:
#- OtherContext Event
Domain: ~
Event:
- Domain