-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.golangci.yml
48 lines (41 loc) · 1.16 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
---
# Almost all linters; some of them are optional.
linters-settings:
depguard:
list-type: blacklist
include-go-root: true
packages:
# use "gopkg.in/yaml.v2" instead
- gopkg.in/yaml.v3
goimports:
local-prefixes: github.com/percona/promconfig
tagliatelle:
case:
rules:
yaml: snake
unused:
check-exported: true
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
- maligned # deprecated
- nlreturn # conflicts with formatter
- scopelint # deprecated
- wrapcheck # forces to wrap errors everywhere
- wsl # 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