-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy path.golangci.yml
More file actions
48 lines (45 loc) · 1.25 KB
/
.golangci.yml
File metadata and controls
48 lines (45 loc) · 1.25 KB
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
version: "2"
linters:
enable:
- staticcheck
- unconvert
- ineffassign
- govet
- unused
- misspell
- revive
disable:
- errcheck
exclusions:
rules:
# We have protoc-generated ttRPC/gRPC code. When adding extra functions
# for generated types we want to consistently violate golint's semantic
# function name spelling rules, instead of inconsistently doing so only
# from automatically generated files. These rules are for that.
- path: pkg/adaptation/result.go
linters:
- golint
- revive
text: "should be claim"
# Differ copies pods and containers with Mutexes for diffing. Should be harmless.
- path: plugins/differ/nri-differ.go
linters:
- govet
text: "copylocks: .*protobuf/internal/impl.MessageState.*"
# We dot-import ginkgo and gomega in some tests. Silence any related errors.
- path: 'pkg/adaptation|pkg/runtime-tools/generate|pkg/net/multiplex'
linters:
- revive
text: "dot-imports:"
- linters:
- revive
text: "package-comments:"
- linters:
- staticcheck
text: "QF1008:"
formatters:
enable:
- gofmt
- goimports
run:
timeout: 2m