-
Notifications
You must be signed in to change notification settings - Fork 21
/
.golangci.yaml
99 lines (88 loc) · 1.59 KB
/
.golangci.yaml
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
issues:
max-same-issues: 0
exclude-use-default: false
exclude:
- if-return
- should have a package comment
exclude-rules:
- path: _test\.go
linters:
- dupl
- gocognit
- gosec
linters:
enable:
- bidichk
- bodyclose
- contextcheck
- dupl
- durationcheck
- errcheck
- errchkjson
- errname
- errorlint
- exportloopref
- gocognit
- gocritic
- gofumpt
- gosec
- lll
- makezero
- mirror
- misspell
- nakedret
- nilerr
- noctx
- nolintlint
- prealloc
- predeclared
- promlinter
- reassign
- revive
- rowserrcheck
- sqlclosecheck
- tenv
- tparallel
- unconvert
- unparam
- usestdlibvars
linters-settings:
errcheck:
exclude-functions:
# We're only ever writing to stdout/stderr (outside of tests)
- fmt.Fprint
- fmt.Fprintf
- fmt.Fprintln
gocognit:
min-complexity: 10
gocritic:
enabled-tags:
- diagnostic
- style
- performance
- experimental
- opinionated
disabled-checks:
- paramTypeCombine
- ptrToRefParam
- whyNoLint # TODO: Address these
gofumpt:
module-path: github.com/rliebz/ghost
gosec:
excludes:
- G104 # duplicate of errcheck
- G304 # include files from variables on purpose
- G307 # duplicate of errcheck
govet:
enable-all: true
disable:
- fieldalignment
lll:
line-length: 100
tab-width: 2
misspell:
locale: US
nakedret:
max-func-lines: 0
revive:
confidence: 0