-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
74 lines (70 loc) · 1.47 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
linters:
enable:
- gofmt
- govet
- gosimple
- staticcheck
- errcheck
- ineffassign
- typecheck
- unused
- revive
- gocyclo
# - gosec
- misspell
- prealloc
- copyloopvar
# - gocritic
- bodyclose
- unconvert
- unparam
- whitespace
# - wsl
linters-settings:
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-dirs:
- vendor
exclude-rules:
- path: _test\.go
linters:
- errcheck
- path: history/storage_test.go
text: "`newContentStorage` - `nodeDataDir` always receives `nodeDataDir`"
- path: state/trie/node.go
linters:
- unused
- path: state/trie/node_enc.go
linters:
- unused
- path: state/trie/encoding.go
linters:
- unused
- path: portalwire/table_util_test.go
linters:
- unused
- path: portalwire/table.go
linters:
- unused
- unparam
- path: portalwire/table_test.go
linters:
- unparam
- path: portalwire/table_reval.go
linters:
- unparam
- path: portalwire/lookup.go
linters:
- unused
- path: state/trie/node_test.go
text: "`randBytes` - `n` always receives `32`"
run:
timeout: 10m