forked from weaviate/weaviate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
46 lines (46 loc) · 1.14 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
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
run:
build-tags:
- integrationTest
- integrationTestSlow