Skip to content

Commit e70d68c

Browse files
committed
chore: update deptrac config file
1 parent 4411e8b commit e70d68c

File tree

2 files changed

+157
-156
lines changed

2 files changed

+157
-156
lines changed

depfile.yaml

Lines changed: 0 additions & 156 deletions
This file was deleted.

deptrac.yaml

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
parameters:
2+
paths:
3+
- ./src/
4+
- ./vendor/codeigniter4/framework/system/
5+
- ./vendor/codeigniter4/settings/src/
6+
exclude_files:
7+
- '#.*test.*#i'
8+
layers:
9+
- name: Model
10+
collectors:
11+
- type: bool
12+
must:
13+
- type: className
14+
regex: .*[A-Za-z]+Model$
15+
must_not:
16+
- type: directory
17+
regex: vendor/.*
18+
- name: Vendor Model
19+
collectors:
20+
- type: bool
21+
must:
22+
- type: className
23+
regex: .*[A-Za-z]+Model$
24+
- type: directory
25+
regex: vendor/.*
26+
- name: Controller
27+
collectors:
28+
- type: bool
29+
must:
30+
- type: className
31+
regex: .*\/Controllers\/.*
32+
must_not:
33+
- type: directory
34+
regex: vendor/.*
35+
- name: Vendor Controller
36+
collectors:
37+
- type: bool
38+
must:
39+
- type: className
40+
regex: .*\/Controllers\/.*
41+
- type: directory
42+
regex: vendor/.*
43+
- name: Config
44+
collectors:
45+
- type: bool
46+
must:
47+
- type: directory
48+
regex: src/Config/.*
49+
must_not:
50+
- type: className
51+
regex: .*Services
52+
- type: directory
53+
regex: vendor/.*
54+
- name: Vendor Config
55+
collectors:
56+
- type: bool
57+
must:
58+
- type: directory
59+
regex: vendor/.*/Config/.*
60+
must_not:
61+
- type: className
62+
regex: .*Services
63+
- name: Entity
64+
collectors:
65+
- type: bool
66+
must:
67+
- type: directory
68+
regex: src/Entities/.*
69+
must_not:
70+
- type: directory
71+
regex: vendor/.*
72+
- name: Vendor Entity
73+
collectors:
74+
- type: bool
75+
must:
76+
- type: directory
77+
regex: vendor/.*/Entities/.*
78+
- name: View
79+
collectors:
80+
- type: bool
81+
must:
82+
- type: directory
83+
regex: src/Views/.*
84+
must_not:
85+
- type: directory
86+
regex: vendor/.*
87+
- name: Vendor View
88+
collectors:
89+
- type: bool
90+
must:
91+
- type: directory
92+
regex: vendor/.*/Views/.*
93+
- name: Service
94+
collectors:
95+
- type: className
96+
regex: .*Services.*
97+
ruleset:
98+
Entity:
99+
- Config
100+
- Model
101+
- Service
102+
- Vendor Config
103+
- Vendor Entity
104+
- Vendor Model
105+
Config:
106+
- Service
107+
- Vendor Config
108+
Model:
109+
- Config
110+
- Entity
111+
- Service
112+
- Vendor Config
113+
- Vendor Entity
114+
- Vendor Model
115+
Service:
116+
- Config
117+
- Vendor Config
118+
119+
# Ignore anything in the Vendor layers
120+
Vendor Model:
121+
- Config
122+
- Service
123+
- Vendor Config
124+
- Vendor Controller
125+
- Vendor Entity
126+
- Vendor Model
127+
- Vendor View
128+
Vendor Controller:
129+
- Service
130+
- Vendor Config
131+
- Vendor Controller
132+
- Vendor Entity
133+
- Vendor Model
134+
- Vendor View
135+
Vendor Config:
136+
- Config
137+
- Service
138+
- Vendor Config
139+
- Vendor Controller
140+
- Vendor Entity
141+
- Vendor Model
142+
- Vendor View
143+
Vendor Entity:
144+
- Service
145+
- Vendor Config
146+
- Vendor Controller
147+
- Vendor Entity
148+
- Vendor Model
149+
- Vendor View
150+
Vendor View:
151+
- Service
152+
- Vendor Config
153+
- Vendor Controller
154+
- Vendor Entity
155+
- Vendor Model
156+
- Vendor View
157+
skip_violations:

0 commit comments

Comments
 (0)