Skip to content

Commit f28d41e

Browse files
authored
chore: update detrac.yaml file for deptrac/deptrac (#11)
1 parent 2af1788 commit f28d41e

File tree

2 files changed

+45
-45
lines changed

2 files changed

+45
-45
lines changed

.github/workflows/deptrac.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ on:
77
paths:
88
- '**.php'
99
- 'composer.*'
10-
- 'depfile.yaml'
10+
- 'deptrac.yaml'
1111
- '.github/workflows/deptrac.yml'
1212
push:
1313
branches:
1414
- develop
1515
paths:
1616
- '**.php'
1717
- 'composer.*'
18-
- 'depfile.yaml'
18+
- 'deptrac.yaml'
1919
- '.github/workflows/deptrac.yml'
2020

2121
permissions:
@@ -70,5 +70,5 @@ jobs:
7070
7171
- name: Trace dependencies
7272
run: |
73-
composer require --dev qossmic/deptrac-shim
73+
composer require --dev deptrac/deptrac
7474
vendor/bin/deptrac analyze --cache-file=build/deptrac.cache

deptrac.yaml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
parameters:
1+
deptrac:
22
paths:
33
- ./src/
44
- ./vendor/codeigniter4/framework/system/
@@ -9,90 +9,90 @@ parameters:
99
collectors:
1010
- type: bool
1111
must:
12-
- type: className
13-
regex: .*[A-Za-z]+Model$
12+
- type: class
13+
value: .*[A-Za-z]+Model$
1414
must_not:
15-
- type: directory
16-
regex: vendor/.*
15+
- type: directory
16+
value: vendor/.*
1717
- name: Vendor Model
1818
collectors:
1919
- type: bool
2020
must:
21-
- type: className
22-
regex: .*[A-Za-z]+Model$
23-
- type: directory
24-
regex: vendor/.*
21+
- type: class
22+
value: .*[A-Za-z]+Model$
23+
- type: directory
24+
value: vendor/.*
2525
- name: Controller
2626
collectors:
2727
- type: bool
2828
must:
29-
- type: className
30-
regex: .*\/Controllers\/.*
29+
- type: class
30+
value: .*\/Controllers\/.*
3131
must_not:
32-
- type: directory
33-
regex: vendor/.*
32+
- type: directory
33+
value: vendor/.*
3434
- name: Vendor Controller
3535
collectors:
3636
- type: bool
3737
must:
38-
- type: className
39-
regex: .*\/Controllers\/.*
40-
- type: directory
41-
regex: vendor/.*
38+
- type: class
39+
value: .*\/Controllers\/.*
40+
- type: directory
41+
value: vendor/.*
4242
- name: Config
4343
collectors:
4444
- type: bool
4545
must:
46-
- type: directory
47-
regex: app/Config/.*
46+
- type: directory
47+
value: app/Config/.*
4848
must_not:
49-
- type: className
50-
regex: .*Services
51-
- type: directory
52-
regex: vendor/.*
49+
- type: class
50+
value: .*Services
51+
- type: directory
52+
value: vendor/.*
5353
- name: Vendor Config
5454
collectors:
5555
- type: bool
5656
must:
57-
- type: directory
58-
regex: vendor/.*/Config/.*
57+
- type: directory
58+
value: vendor/.*/Config/.*
5959
must_not:
60-
- type: className
61-
regex: .*Services
60+
- type: class
61+
value: .*Services
6262
- name: Entity
6363
collectors:
6464
- type: bool
6565
must:
66-
- type: directory
67-
regex: app/Entities/.*
66+
- type: directory
67+
value: app/Entities/.*
6868
must_not:
69-
- type: directory
70-
regex: vendor/.*
69+
- type: directory
70+
value: vendor/.*
7171
- name: Vendor Entity
7272
collectors:
7373
- type: bool
7474
must:
75-
- type: directory
76-
regex: vendor/.*/Entities/.*
75+
- type: directory
76+
value: vendor/.*/Entities/.*
7777
- name: View
7878
collectors:
7979
- type: bool
8080
must:
81-
- type: directory
82-
regex: app/Views/.*
81+
- type: directory
82+
value: app/Views/.*
8383
must_not:
84-
- type: directory
85-
regex: vendor/.*
84+
- type: directory
85+
value: vendor/.*
8686
- name: Vendor View
8787
collectors:
8888
- type: bool
8989
must:
90-
- type: directory
91-
regex: vendor/.*/Views/.*
90+
- type: directory
91+
value: vendor/.*/Views/.*
9292
- name: Service
9393
collectors:
94-
- type: className
95-
regex: .*Services.*
94+
- type: class
95+
value: .*Services.*
9696
ruleset:
9797
Entity:
9898
- Config
@@ -153,4 +153,4 @@ parameters:
153153
- Vendor Entity
154154
- Vendor Model
155155
- Vendor View
156-
skip_violations:
156+
skip_violations: []

0 commit comments

Comments
 (0)