forked from percona/telemetry-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
49 lines (44 loc) · 1.46 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
---
# Almost all linters; some of them are optional.
linters-settings:
depguard:
rules:
main:
deny:
- pkg: github.com/pkg/errors
desc: Use "standard errors" instead
goimports:
local-prefixes: github.com/percona/telemetry-agent
unparam:
check-exported: true
linters:
enable-all: true
disable:
- exhaustivestruct # too annoying
- gci # works poorly
- goerr113 # we use pkg/errors for stack traces
- golint # deprecated
- gomnd # too annoying
- interfacer # deprecated
- lll # gRPC types are long
- maligned # deprecated
- nlreturn # conflicts with formatter
- scopelint # deprecated
- wrapcheck # forces to wrap errors everywhere
- wsl # too annoying
- varnamelen # annoying
- exhaustruct # verbose style
- execinquery # annoying
- nosnakecase # snake case is used in the codebase
- interfacebloat # controversy to codebase
- funlen # some logic is really long
- tagalign # controversy to codebase
- mnd # too annoying
issues:
exclude-use-default: false
exclude-rules:
- path: _test\.go
linters:
- funlen # tests may be long
- testpackage # senseless
- unused # very annoying false positive: https://github.com/golangci/golangci-lint/issues/791