-
Notifications
You must be signed in to change notification settings - Fork 424
/
.golangci.yml
49 lines (44 loc) · 1.08 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
---
linters-settings:
# prevent import of "errors" instead of "github.com/pkg/errors"
depguard:
rules:
# Name of a rule.
main:
# Packages that are not allowed where the value is a suggestion.
deny:
- pkg: "errors"
desc: Should be replaced by github.com/pkg/errors package
lll:
line-length: 140
tab-width: 4
unused:
check-exported: false
unparam:
check-exported: true
goimports:
# put imports beginning with prefix after 3rd-party packages;
# it's a comma-separated list of prefixes
local-prefixes: github.com/percona/mongodb_exporter
linters:
enable-all: true
disable:
- lll
- unused
- testpackage
- wsl
- exhaustivestruct
- varnamelen
- maligned #deprecated
- scopelint #deprecated
- golint #deprecated
- interfacer #deprecated
issues:
exclude-use-default: false
exclude:
# gas: Duplicated errcheck checks
- 'G104: Errors unhandled'
exclude-rules:
- path: _test\.go
linters:
- unused