forked from sashaduke/fusionchain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
121 lines (120 loc) · 2.61 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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
linters-settings:
gosec:
excludes:
- G101
govet:
check-shadowing: true
settings:
printf:
funcs:
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
golint:
min-confidence: 0
revive:
enable-all-rules: true
rules:
- name: if-return
disabled: true
- name: blank-imports
disabled: true
- name: flag-parameter
disabled: true
- name: argument-limit
disabled: true
- name: file-header
disabled: true
- name: line-length-limit
disabled: true
- name: cyclomatic
disabled: true
- name: cognitive-complexity
disabled: true
arguments: [7]
- name: function-result-limit
disabled: true
- name: add-constant
severity: warning
disabled: true
arguments:
- maxLitCount: "4"
allowStrs: '""'
allowInts: "0,1,2"
- name: unhandled-error
arguments:
- "fmt.Printf"
- "fmt.Println"
- name: function-length
disabled: true
- name: banned-characters
disabled: true
- name: max-public-structs
disabled: true
- name: unexported-return
disabled: true
- name: get-return
disabled: true
- name: bare-return
disabled: true
linters:
disable-all: true
enable:
- bodyclose
- errcheck
- gofmt
- goimports
- revive
- gosec
- gosimple
- govet
- ineffassign
- misspell
- staticcheck
- stylecheck
- unused
- whitespace
run:
skip-dirs:
- pkg/golinters/goanalysis/(checker|passes)
- x/evm
- x/feemarket
- x/revenue
- x/wasm
tests: false
issues:
exclude-rules:
- text: 'shadow: declaration of "(err|ctx)" shadows declaration at'
linters:
- govet
- text: "weak cryptographic primitive"
linters:
- gosec
- text: "avoid magic numbers"
linters:
- revive
- text: "implement me"
linters:
- revive
- text: "msg"
linters:
- revive
- text: "token"
linters:
- revive
- text: "type"
linters:
- revive
- text: "credentials"
linters:
- revive
- text: "`db"
linters:
- revive
- text: "SA4023"
linters:
- staticcheck
- path: /
linters:
- typecheck