-
Notifications
You must be signed in to change notification settings - Fork 0
/
.go-arch-lint.yml
65 lines (56 loc) · 1.51 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
version: 3
workdir: internal
allow:
depOnAnyVendor: false
excludeFiles:
- "^.*_test\\.go$"
- "^.*\/test\/.*$"
vendors:
go-common: { in: golang.org/x/sync/errgroup }
go-ast: { in: [ golang.org/x/mod/modfile, golang.org/x/tools/go/packages ] }
3rd-cobra: { in: github.com/spf13/cobra }
3rd-color-fmt: { in: github.com/logrusorgru/aurora/v3 }
3rd-code-highlight: { in: github.com/alecthomas/chroma/* }
3rd-json-scheme: { in: github.com/xeipuuv/gojsonschema }
3rd-graph: { in: oss.terrastruct.com/d2/** }
3rd-yaml:
in:
- github.com/goccy/go-yaml
- github.com/goccy/go-yaml/**
- github.com/fe3dback/go-yaml # custom fork (need propose back PR)
- github.com/fe3dback/go-yaml/** # custom fork (need propose back PR)
components:
main: { in: app }
container: { in: app/internal/container/** }
operations: { in: operations/* }
services: { in: services/** }
view: { in: view }
models: { in: models/** }
commonVendors:
- go-common
commonComponents:
- models
deps:
main:
mayDependOn:
- container
container:
anyVendorDeps: true
mayDependOn:
- operations
- services
- view
operations:
mayDependOn:
- services
canUse:
- 3rd-graph
services:
mayDependOn:
- services
canUse:
- go-ast
- 3rd-yaml
- 3rd-color-fmt
- 3rd-code-highlight
- 3rd-json-scheme