-
Notifications
You must be signed in to change notification settings - Fork 270
Expand file tree
/
Copy path.golangci.yml
More file actions
69 lines (68 loc) · 1.4 KB
/
.golangci.yml
File metadata and controls
69 lines (68 loc) · 1.4 KB
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
version: "2"
run:
issues-exit-code: 1
tests: true
linters:
default: none
enable:
- errcheck
- gosec
- govet
- ineffassign
- misspell
- unconvert
settings:
dupl:
threshold: 50
errcheck:
check-type-assertions: false
check-blank: false
goconst:
min-len: 3
min-occurrences: 2
gosec:
excludes:
- G115
exclusions:
generated: lax
presets:
- std-error-handling
- legacy
paths:
- internal/contracts/
rules:
- linters:
- goconst
path: eth-node/keystore/passphrase\.go
text: make it a constant
- linters:
- goconst
path: protocol/message_handler\.go
text: make it a constant
- linters:
- goconst
path: protocol/.*_test\.go
text: make it a constant
- path: (.+)\.go$
text: composite literal uses unkeyed fields
- path: (.+)\.go$
text: 'G304: Potential file inclusion via variable'
- path: (.+)\.go$
text: 'G104: Errors unhandled.'
- path: (.+)\.go$
text: lib._Ctype_char, which can be annoying to use
- path: (.+)\.go$
text: SA1019
formatters:
enable:
- goimports
settings:
gofmt:
simplify: true
goimports:
local-prefixes:
- github.com/status-im/status-go
exclusions:
generated: strict
paths:
- static