-
Notifications
You must be signed in to change notification settings - Fork 18
/
.golangci.yml
80 lines (78 loc) · 1.43 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
run:
concurrency: 4
issues-exit-code: 1
tests: true
skip-dirs-use-default: true
skip-files:
- ".*_mock_test.go$"
allow-parallel-runners: true
# all available settings of specific linters
linters-settings:
govet:
check-shadowing: true
enable-all: true
gofmt:
simplify: true
gosec:
excludes:
- G404
goimports:
local-prefixes: github.com/circonus-labs,github.com/openhistogram,github.com/circonus
misspell:
locale: US
unused:
check-exported: false
unparam:
check-exported: false
staticcheck:
go: "1.16"
# https://staticcheck.io/docs/options#checks
checks: [ "all", "-ST1017" ]
stylecheck:
go: "1.16"
# https://staticcheck.io/docs/options#checks
checks: [ "all", "-ST1017" ]
linters:
enable:
- deadcode
- errcheck
- gocritic
- gofmt
- gosec
- gosimple
- govet
- ineffassign
- megacheck
- misspell
- prealloc
- staticcheck
- structcheck
- typecheck
- unparam
- unused
- varcheck
- gci
- godot
- godox
- goerr113
- predeclared
- unconvert
- wrapcheck
- revive
- exportloopref
- asciicheck
- errorlint
- wrapcheck
- goconst
#- stylecheck
- forcetypeassert
- goimports
disable:
- scopelint # deprecated
- golint # deprecated
- maligned # deprecated
disable-all: false
presets:
- bugs
- unused
fast: false