generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.go-arch-lint.yml
224 lines (210 loc) · 5.32 KB
/
.go-arch-lint.yml
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
# yaml-language-server: $schema=./.go-arch-lint-schema.json
version: 3
workdir: .
components:
controller: { in: backend/controller/** }
ftl-controller-cmd: { in: cmd/ftl-controller/** }
common-plugin: { in: common/plugin/** }
common: { in: common/** }
common-tests: { in: common/internal/tests/** }
internal: { in: internal/** }
ftl-version: { in: . }
libdal: { in: backend/libdal/** }
lease-service: { in: backend/lease/** }
cron-service: { in: backend/cron/** }
ingress-service: { in: backend/ingress/** }
timeline-service: { in: backend/timeline/** }
provisioner-service: { in: backend/provisioner/** }
admin-service: { in: backend/admin/** }
console-service: { in: backend/console/** }
backend-protos: {in: backend/protos/**}
ftl: { in: . }
go-runtime: { in: go-runtime/** }
jvm-runtime: { in: jvm-runtime/** }
python-runtime: { in: python-runtime/** }
runner: { in: backend/runner/** }
ftl-cmd: { in: frontend/cli/** }
frontend: { in: frontend/console/** }
ftl-runner-cmd: { in: cmd/ftl-runner/** }
ftl-gen-lsp-cmd: { in: cmd/ftl-gen-lsp/** }
ftl-provisioner-cloudformation-cmd: { in: cmd/ftl-provisioner-cloudformation/** }
ftl-lease-cmd: { in: cmd/ftl-lease/** }
ftl-http-ingress-cmd: { in: cmd/ftl-http-ingress/** }
ftl-cron-cmd: { in: cmd/ftl-cron/** }
ftl-timeline-cmd: { in: cmd/ftl-timeline/** }
ftl-provisioner-cmd: { in: cmd/ftl-provisioner/** }
ftl-admin-cmd: { in: cmd/ftl-admin/** }
ftl-console-cmd: { in: cmd/ftl-console/** }
ftl-proxy-pg-cmd: { in: cmd/ftl-proxy-pg/** }
ftl-raft-tester-cmd: { in: cmd/raft-tester/** }
ftl-sqlc-cmd: { in: cmd/ftl-sqlc/** }
go2proto: { in: cmd/go2proto/** }
lint-commit-or-rollback-cmd: { in: cmd/lint-commit-or-rollback/** }
smoketest: { in: smoketest/** }
excludeFiles:
- ".*/testdata/.*"
- ".*/\\.ftl/.*"
- "/examples/.*"
- "/jvm-runtime/.*"
- ".*_test.go"
allow:
depOnAnyVendor: true
commonComponents:
- common
- ftl-version
deps:
backend-protos:
mayDependOn:
- backend-protos
- internal
controller:
mayDependOn:
- controller
- frontend
- timeline-service #TODO: Timeline should have a separate client package.
- internal
- libdal
- backend-protos
frontend:
mayDependOn:
- internal
runner:
mayDependOn:
- runner
- internal
- backend-protos
go-runtime:
mayDependOn:
- go-runtime
- internal
- backend-protos
python-runtime:
mayDependOn:
- python-runtime
- internal
- backend-protos
jvm-runtime:
mayDependOn:
- jvm-runtime
- internal
- backend-protos
ftl-cmd:
mayDependOn:
- controller
- ftl
- jvm-runtime # TODO: When we decouple runtimes, this should be removed.
- go-runtime # TODO: When we decouple runtimes, this should be removed.
- provisioner-service
- timeline-service
- ingress-service
- cron-service
- internal
- backend-protos
- lease-service
- admin-service
- console-service
ftl-controller-cmd:
mayDependOn:
- controller
- ftl
- timeline-service #TODO: Timeline should have a separate client package.
- internal
- backend-protos
ftl-runner-cmd:
mayDependOn:
- runner
- internal
- backend-protos
ftl-cron-cmd:
mayDependOn:
- cron-service
- timeline-service #TODO: Timeline should have a separate client package.
- internal
- backend-protos
ftl-http-ingress-cmd:
mayDependOn:
- ingress-service
- timeline-service #TODO: Timeline should have a separate client package.
- internal
- backend-protos
ftl-provisioner-cmd:
mayDependOn:
- provisioner-service
- internal
- backend-protos
ftl-provisioner-cloudformation-cmd:
mayDependOn:
- provisioner-service
- internal
- backend-protos
ftl-proxy-pg-cmd:
mayDependOn:
- internal
ftl-timeline-cmd:
mayDependOn:
- timeline-service
- internal
- backend-protos
ftl-lease-cmd:
mayDependOn:
- lease-service
- internal
- backend-protos
ftl-admin-cmd:
mayDependOn:
- admin-service
- internal
- backend-protos
ftl-console-cmd:
mayDependOn:
- console-service
- internal
- backend-protos
cron-service:
mayDependOn:
- cron-service
- timeline-service #TODO: Timeline should have a separate client package.
- internal
- backend-protos
ingress-service:
mayDependOn:
- ingress-service
- timeline-service #TODO: Timeline should have a separate client package.
- internal
- backend-protos
provisioner-service:
mayDependOn:
- provisioner-service
- internal
- backend-protos
timeline-service:
mayDependOn:
- internal
- backend-protos
lease-service:
mayDependOn:
- internal
- backend-protos
admin-service:
mayDependOn:
- internal
- backend-protos
console-service:
mayDependOn:
- internal
- backend-protos
smoketest:
mayDependOn:
- go-runtime
common-plugin:
mayDependOn:
- internal
- backend-protos
internal:
mayDependOn:
- internal
- backend-protos
common-tests:
mayDependOn:
- internal
- go-runtime