-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.golangci.yml
63 lines (60 loc) · 1.15 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
run:
timeout: 20m
tests: true
linters:
disable-all: true
enable:
- goimports
- gosimple
- govet
- ineffassign
- misspell
- unconvert
- typecheck
- unused
- staticcheck
- bidichk
- durationcheck
- copyloopvar
- whitespace
- revive
- gocheckcompilerdirectives
- reassign
- errcheck
- errorlint
- makezero
- nilerr
- dogsled
- gci
- goconst
- gocritic
- gofumpt
- nakedret
- nolintlint
- stylecheck
- thelper
- unparam
- mirror
- tenv
linters-settings:
gofmt:
simplify: true
revive:
enable-all-rules: false
# here we enable specific useful rules
# see https://golangci-lint.run/usage/linters/#revive for supported rules
rules:
- name: receiver-naming
severity: warning
disabled: false
exclude: [""]
issues:
exclude-rules:
- path: pkg/crypto/hash.go
text: 'SA1019: "golang.org/x/crypto/ripemd160" is deprecated: RIPEMD-160 is a legacy hash and should not be used for new applications.'
exclude-dirs:
- tmp
- api
exclude-files:
- '\*\.pb\.go'
- '\*\.pb\.gw\.go'