-
Notifications
You must be signed in to change notification settings - Fork 254
Expand file tree
/
Copy path.golangci.yml
More file actions
40 lines (40 loc) · 726 Bytes
/
.golangci.yml
File metadata and controls
40 lines (40 loc) · 726 Bytes
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
version: "2"
run:
issues-exit-code: 1
tests: true
linters:
enable:
- nakedret
- staticcheck
- whitespace
disable:
- errcheck
settings:
govet:
disable:
- fieldalignment
enable-all: true
staticcheck:
checks:
- all
- -ST1000
- -ST1003
- -ST1020
exclusions:
rules:
- path: (.+)\.go$
text: 'shadow: declaration of "err" shadows declaration at line (\d+)'
warn-unused: true
issues:
max-issues-per-linter: 0
max-same-issues: 0
formatters:
enable:
- gofumpt
- goimports
settings:
gofumpt:
extra-rules: true
goimports:
local-prefixes:
- github.com/prometheus/statsd_exporter