-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.go-arch-lint.yml
117 lines (111 loc) · 2.36 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
version: 3
workdir: .
excludeFiles:
- "^.*_test\\.go$"
- "^.*\/test\/.*$"
vendors:
color: { in: github.com/fatih/color }
pflag: { in: github.com/spf13/pflag }
go-colorable: { in: github.com/mattn/go-colorable }
xdg: { in: github.com/adrg/xdg }
env: { in: github.com/caarlos0/env/v6 }
sqlite: { in: modernc.org/sqlite }
wire: { in: [github.com/google/wire, github.com/google/wire/cmd/wire] }
tablewriter: { in: github.com/olekukonko/tablewriter }
diffmatchpatch: { in: github.com/sergi/go-diff/diffmatchpatch }
difflib: { in: github.com/pmezard/go-difflib/difflib }
excelize: { in: github.com/xuri/excelize/v2 }
gomock: { in: go.uber.org/mock/gomock }
go-prompt: { in: [github.com/c-bata/go-prompt, github.com/c-bata/go-prompt/completer] }
components:
cmd: { in: . }
shell: { in: shell }
domain: { in: domain }
model: { in: domain/model }
repository: { in: domain/repository }
infrastructure: { in: [infrastructure, infrastructure/mock/**] }
memory-infra: { in: infrastructure/memory }
persistence-infra: { in: infrastructure/persistence }
usecase: { in: usecase }
interactor: { in: interactor/** }
config: { in: config }
golden: { in: golden }
di: { in: di }
mock: { in: [] }
commonVendors:
- wire
- gomock
- color
commonComponents:
- model
- golden
- config
deps:
di:
mayDependOn:
- model
- shell
- usecase
- interactor
- repository
- config
- infrastructure
- memory-infra
- persistence-infra
golden:
canUse:
- diffmatchpatch
- difflib
config:
canUse:
- color
- pflag
- go-colorable
- xdg
- env
- sqlite
- wire
model:
canUse:
- tablewriter
mayDependOn:
- domain
cmd:
mayDependOn:
- shell
- di
shell:
canUse:
- go-prompt
- tablewriter
- go-colorable
mayDependOn:
- model
- usecase
usecase:
mayDependOn:
- model
- repository
interactor:
mayDependOn:
- model
- usecase
- repository
repository:
mayDependOn:
- model
infrastructure:
mayDependOn:
- model
memory-infra:
mayDependOn:
- model
- repository
- infrastructure
persistence-infra:
canUse:
- excelize
mayDependOn:
- model
- repository
- infrastructure