-
Notifications
You must be signed in to change notification settings - Fork 146
/
Copy path.golangci.yml
40 lines (34 loc) · 1.02 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
---
linters-settings:
depguard:
list-type: blacklist
include-go-root: true
packages:
# use "github.com/pkg/errors" instead
- errors
# use "github.com/golang/protobuf/proto" instead
- github.com/gogo/protobuf/proto
goimports:
local-prefixes: github.com/percona/pmm
lll:
line-length: 170
tab-width: 4
unused:
check-exported: false
unparam:
check-exported: true
linters:
enable-all: true
disable:
- scopelint # too many false positives
- gochecknoglobals # mostly useless
issues:
exclude-use-default: false
exclude:
# gas: Duplicated errcheck checks
- 'G104: Errors unhandled'
# golint: Methods for implementing interfaces are not documented
- 'exported method `.+` should have comment or be unexported'
- 'comment on exported method `.+` should be of the form `.+ ...`'
# golint: We have to return unexported types due to oneof implementation
- 'exported method .+ returns unexported type .+, which can be annoying to use'