forked from weaviate/weaviate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
113 lines (112 loc) · 3.71 KB
/
.golangci.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
linters:
disable:
- errcheck
enable:
- misspell
- bodyclose
- gofumpt
- exhaustive
- govet
- unused
- nolintlint
linters-settings:
exhaustive:
# Presence of "default" case in switch statements satisfies exhaustiveness,
# even if all enum members are not listed.
default-signifies-exhaustive: true
issues:
exclude-rules:
# Exclude some staticcheck messages
- linters:
- staticcheck
text: "S1034"
- linters:
- staticcheck
text: "SA1029:"
- linters:
- staticcheck
text: "SA1015:"
- linters:
- staticcheck
text: "SA5011"
- linters:
- govet
text: "composites"
- linters:
- staticcheck
path: ^adapters/handlers/grpc/v1\/(?:[^\/]+\/)*[^\/]+\.go$
text: 'SA1019' # TODO: remove this once deprecated gRPC fields are removed from API implementation
- linters:
- staticcheck
path: ^test/acceptance/grpc\/[^\/]+\.go$
text: 'SA1019' # TODO: remove this once deprecated gRPC fields are removed from API implementation
- linters:
- staticcheck
path: adapters/handlers/grpc/v1/prepare_reply.go
text: 'SA1019' # TODO: remove this once deprecated gRPC fields are removed from API
- linters:
- staticcheck
path: adapters/handlers/grpc/v1/parse_search_request.go
text: 'SA1019' # TODO: remove this once deprecated gRPC fields are removed from API
- linters:
- staticcheck
path: adapters/handlers/grpc/v1/batch_parse_request.go
text: 'SA1019' # TODO: remove this once deprecated gRPC fields are removed from API
- linters:
- staticcheck
path: adapters/handlers/grpc/v1/service.go
text: 'SA1019' # TODO: remove this once deprecated gRPC fields are removed from API
- linters:
- staticcheck
path: test/acceptance/grpc/grpc_test_deprecated.go
text: 'SA1019' # TODO: remove this once deprecated gRPC fields are removed from API
- linters:
- staticcheck
path: adapters/handlers/grpc/v1/mapping.go
text: 'SA1019' # TODO: remove this once deprecated gRPC fields are removed from API
- linters:
- staticcheck
path: test/acceptance/grpc/list_value_return_test.go
text: 'SA1019' # TODO: remove this once deprecated gRPC fields are removed from API
- linters:
- staticcheck
path: usecases/auth/authentication/oidc/middleware_test.go
text: 'SA1019' # jwt.StandardClaims is deprecated, but for the purpose of this test, this doesn't matter
# Exclude 'unused' linter for assembly files
- linters:
- unused
path: adapters/repos/db/vector/hnsw/distancer/asm/dot_inline.go
text: "func `dot[357]`"
- linters:
- unused
path: adapters/repos/db/vector/hnsw/distancer/asm/l2_inline.go
text: "func `l2[35]`"
- linters:
- unused
path: adapters/repos/db/vector/hnsw/distancer/asm/l2_inline.go
text: "func `l22FloatByte`"
- linters:
- unused
path: adapters/repos/db/vector/hnsw/distancer/asm/l2_inline.go
text: "func `l23FloatByte`"
- linters:
- unused
path: adapters/repos/db/vector/hnsw/distancer/asm/l2_inline.go
text: "func `l24FloatByte`"
- linters:
- unused
path: adapters/repos/db/vector/hnsw/distancer/asm/l2_inline.go
text: "func `l25FloatByte`"
- linters:
- unused
path: adapters/repos/db/vector/hnsw/distancer/asm/l2_inline.go
text: "func `l210FloatByte`"
- linters:
- unused
path: adapters/repos/db/vector/hnsw/distancer/asm/l2_inline.go
text: "func `l212FloatByte`"
run:
timeout: 5m
build-tags:
- integrationTest
- integrationTestSlow