forked from cloudflare/ebpf_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yaml
42 lines (42 loc) · 924 Bytes
/
.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
linters:
enable:
- dupl
- durationcheck
- exhaustive
- exportloopref
- forcetypeassert
- gochecksumtype
- gofmt
- goimports
- gomoddirectives
- inamedparam
- interfacebloat
- makezero
- mirror
- misspell
- musttag
- nestif
- nilnil
- nolintlint
- nosprintfhostport
- perfsprint
- prealloc
- predeclared
- promlinter
- reassign
- revive
- spancheck
- stylecheck
- tagalign
- unconvert
- unparam
- unused
- usestdlibvars
- whitespace
# nilerr: https://github.com/gostaticanalysis/nilerr/issues/8
# wastedassign: https://github.com/sanposhiho/wastedassign/issues/39
issues:
exclude-use-default: false
exclude:
- Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*print(f|ln)?|os\.(Un)?Setenv). is not checked
- should have a package comment