forked from qossmic/deptrac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deptrac.yaml
164 lines (160 loc) · 4.27 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
parameters:
paths:
- ./src
baseline: 'depfile.baseline.yml'
layers:
- name: Utils
collectors:
- type: directory
regex: src/File/.*
- type: className
regex: .*ShouldNotHappenException
- type: className
regex: .*InvalidConfigurationException
- type: bool
must:
- type: className
regex: .+\\.*
must_not:
- type: className
regex: ^Qossmic\\Deptrac\\.*
- type: layer
layer: SymfonyConsole
- name: SymfonyConsole
collectors:
- type: className
regex: Symfony\\Component\\Console\\.*
- name: Console Formatters
collectors:
- type: implements
implements: 'Qossmic\Deptrac\OutputFormatter\OutputFormatterInterface'
- type: className
regex: .*ConfigurationGraphViz
- name: Console
collectors:
- type: directory
regex: src/Console/.*
- type: className
regex: OutputFormatter\w+
- name: Application
collectors:
- type: bool
must:
- type: directory
regex: src/.*
must_not:
- type: directory
regex: src/.*/.*
- type: className
regex: OutputFormatter\w+
- type: className
regex: .*ShouldNotHappenException
- type: directory
regex: src/RulesetEngine/.*
- type: bool
must:
- type: directory
regex: src/Configuration/.*
must_not:
- type: className
regex: .*ConfigurationGraphViz
- type: className
regex: .*ConfigurationAnalyser
- type: className
regex: .*ConfigurationCollector
- type: className
regex: .*InvalidConfigurationException
- name: Dependencies
collectors:
- type: bool
must:
- type: directory
regex: src/Dependency/.*
must_not:
- type: className
regex: .*Resolver
- type: inherits
inherits: 'Qossmic\Deptrac\AstRunner\AstMap\TokenName'
- type: className
regex: Qossmic\\Deptrac\\AstRunner\\AstMap\\TokenName
- type: className
regex: Qossmic\\Deptrac\\AstRunner\\AstMap\\FileOccurrence
- name: AstRunner
collectors:
- type: className
regex: .*ConfigurationAnalyser
- type: className
regex: .*CacheableFileSubscriber
- type: bool
must:
- type: directory
regex: src/AstRunner/.*
must_not:
- type: inherits
inherits: 'Qossmic\Deptrac\AstRunner\AstMap\TokenName'
- type: className
regex: Qossmic\\Deptrac\\AstRunner\\AstMap\\TokenName
- type: className
regex: Qossmic\\Deptrac\\AstRunner\\AstMap\\FileOccurrence
- name: Resolver
collectors:
- type: directory
regex: src/Collector/.*
- type: directory
regex: src/DependencyEmitter/.*
- type: className
regex: Qossmic\\Deptrac\\Dependency\\Resolver
- type: className
regex: .*ConfigurationCollector
- name: Events
collectors:
- type: bool
must:
- type: directory
regex: src/Subscriber/.*
must_not:
- type: className
regex: .*CacheableFileSubscriber
ruleset:
SymfonyConsole: ~
Console Formatters:
- Console
- Application
- Dependencies
- Utils
Console:
- Application
- Console Formatters
- Events
- Utils
- SymfonyConsole
Application:
- Dependencies
- Utils
- Resolver
Dependencies:
- Utils
AstRunner:
- Utils
- Dependencies
Resolver:
- Utils
- AstRunner
- Dependencies
- Application
Events:
- Utils
- Console
- AstRunner
- Dependencies
formatters:
graphviz:
hidden_layers:
- Utils
- Events
groups:
Console:
- Console
- Console Formatters
- SymfonyConsole
pointToGroups: true