@@ -21,6 +21,11 @@ deptrac:
2121 ^Constructo\\Type\\.*|\
2222 ^Constructo\\Factory\\.*
2323
24+ - name : Hyperf
25+ collectors :
26+ - type : classLike
27+ value : ^Serendipity\\Hyperf\\.*
28+
2429 - name : Infrastructure
2530 collectors :
2631 - type : classLike
@@ -31,61 +36,42 @@ deptrac:
3136 - type : classLike
3237 value : ^Serendipity\\Presentation\\.*
3338
34- # Define the supported global layers
39+ - name : Testing
40+ collectors :
41+ - type : classLike
42+ value : ^Serendipity\\Testing\\.*
43+
3544 - name : Contract
3645 collectors :
3746 - type : classLike
3847 value :
48+ ^Psr\\.*|\
49+ ^Constructo\\Contract\\.*|\
3950 ^Hyperf\\Contract\\.*|\
40- ^Psr\\Container\\ContainerExceptionInterface$|\
41- ^Psr\\Container\\NotFoundExceptionInterface$|\
42- ^Psr\\EventDispatcher\\EventDispatcherInterface$|\
43- ^Constructo\\Contract\\.*
51+ ^Hyperf\\HttpServer\\Contract\\.*|\
52+ ^Hyperf\\Validation\\.*|\
53+ ^Hyperf\\Context\\Context$
4454
4555 - name : Native
4656 collectors :
4757 - type : classLike
4858 value : ^\w+$|^(DS|Decimal)\\.*$
4959
5060 - name : Vendor
51- collectors :
52- - type : bool
53- must :
54- - type : classLike
55- value :
56- ^Psr\\(Http|Log|Container)\\.*|\
57- ^Hyperf\\(Command|Context|Coordinator|DB|Event|ExceptionHandler|Guzzle|HttpMessage|HttpServer)\\.*|\
58- ^Google\\.*|\
59- ^GuzzleHttp\\.*|\
60- ^SleekDB\\.*|\
61- ^Visus\\Cuid2\\.*|\
62- ^Sentry\\.*|\
63- ^Swow\\.*|\
64- ^MongoDB\\.*|\
65- ^Symfony\\.*
66- must_not :
67- - type : classLike
68- value :
69- ^Hyperf\\Contract\\.*|\
70- ^Psr\\Container\\ContainerInterface$|\
71- ^Psr\\Container\\ContainerExceptionInterface$|\
72- ^Psr\\Container\\NotFoundExceptionInterface$|\
73- ^Psr\\Http\\Message\\ServerRequestInterface$|\
74- ^Psr\\EventDispatcher\\EventDispatcherInterface$|\
75- ^Hyperf\\Context\\Context$|\
76- ^Hyperf\\Validation\\ValidationException$|\
77- ^Hyperf\\Validation\\Request\\FormRequest$
78-
79- - name : Validation
8061 collectors :
8162 - type : classLike
8263 value :
83- ^Serendipity\\Hyperf\\Request\\HyperfFormRequest$|\
84- ^Psr\\Container\\ContainerInterface$|\
85- ^Psr\\Http\\Message\\ServerRequestInterface$|\
86- ^Hyperf\\Context\\Context$|\
87- ^Hyperf\\Validation\\ValidationException$|\
88- ^Hyperf\\Validation\\Request\\FormRequest$
64+ ^Google\\.*|\
65+ ^GuzzleHttp\\.*|\
66+ ^SleekDB\\.*|\
67+ ^Visus\\Cuid2\\.*|\
68+ ^Sentry\\.*|\
69+ ^Swow\\.*|\
70+ ^MongoDB\\.*|\
71+ ^Symfony\\.*|\
72+ ^Hyperf\\(?!Contract|Validation|Context\\Context).*|\
73+ ^FastRoute\\.*|\
74+ ^PHPUnit\\.*
8975
9076 ruleset :
9177 Application :
@@ -95,20 +81,30 @@ deptrac:
9581 Domain :
9682 - Contract
9783 - Native
84+ Hyperf :
85+ - Domain
86+ - Contract
87+ - Native
88+ - Infrastructure
89+ - Testing
90+ - Presentation
91+ - Vendor
9892 Infrastructure :
9993 - Domain
10094 - Contract
10195 - Native
96+ - Hyperf
10297 - Vendor
103- - Validation
10498 Presentation :
10599 - Domain
106100 - Contract
107101 - Native
108- - Application
109102 - Infrastructure
110- - Validation
111- Validation :
103+ - Hyperf
104+ Testing :
112105 - Domain
113- - Native
114106 - Contract
107+ - Native
108+ - Presentation
109+ - Hyperf
110+ - Vendor
0 commit comments