Skip to content

Commit 02d8102

Browse files
committed
sav
1 parent a42adf0 commit 02d8102

File tree

1 file changed

+74
-54
lines changed

1 file changed

+74
-54
lines changed

.golangci.yml

Lines changed: 74 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,85 @@
1-
# This file configures github.com/golangci/golangci-lint.
2-
1+
version: "2"
32
run:
4-
timeout: 10m
53
tests: true
6-
74
linters:
8-
presets:
9-
- bugs
10-
- error
11-
- unused
12-
- performance
5+
enable:
6+
- asasalint
7+
- asciicheck
8+
- bidichk
9+
- bodyclose
10+
- durationcheck
11+
- fatcontext
12+
- gochecksumtype
13+
- gocritic
14+
- gosmopolitan
15+
- loggercheck
16+
- nilnesserr
17+
- perfsprint
18+
- prealloc
19+
- reassign
20+
- rowserrcheck
21+
- spancheck
22+
- sqlclosecheck
23+
- testifylint
24+
- unconvert
25+
- wastedassign
26+
- zerologlint
1327
disable:
14-
- gosec # enable it after 1-2 weeks. it failing CI withoutt enough info to fix: https://github.com/erigontech/erigon/actions/runs/5928644129/job/16074701625
15-
- exhaustive
16-
- musttag
17-
- contextcheck
18-
- wrapcheck
19-
- err113
20-
- unparam
21-
- errchkjson #TODO: enable me
22-
- makezero #TODO: enable me
28+
- errorlint #TODO: enable me
2329
- noctx #TODO: enable me
2430
- nilerr #TODO: enable me
25-
- errorlint #TODO: enable me
2631
- unused #TODO: enable me
32+
- makezero #TODO: enable me
33+
- contextcheck
34+
- err113
35+
- errchkjson
36+
- exhaustive
2737
- gocheckcompilerdirectives
38+
- gosec
39+
- musttag
2840
- protogetter
29-
- recvcheck #TODO: enable me
41+
- recvcheck
42+
- unparam
43+
- wrapcheck
44+
settings:
45+
goconst:
46+
min-len: 3
47+
min-occurrences: 6
48+
exclusions:
49+
generated: lax
50+
presets:
51+
- comments
52+
- common-false-positives
53+
- legacy
54+
- std-error-handling
55+
rules:
56+
- linters:
57+
- gosec
58+
- unparam
59+
- unused
60+
path: _test\.go
61+
- linters:
62+
- golint
63+
text: should be
64+
- linters:
65+
- err113
66+
text: do not define dynamic errors
67+
- linters:
68+
- staticcheck
69+
text: (should be|should have name of the form)
70+
paths:
71+
- third_party$
72+
- builtin$
73+
- examples$
74+
formatters:
3075
enable:
31-
- unconvert
32-
# - predeclared #TODO: enable me
33-
# - thelper #TODO: enable me
34-
- testifylint #TODO: enable me
35-
- wastedassign
3676
- gofmt
37-
- gocritic
38-
- perfsprint
39-
# - revive
40-
# - forcetypeassert
41-
# - stylecheck
42-
43-
linters-settings:
44-
gofmt:
45-
simplify: true
46-
goconst:
47-
min-len: 3 # minimum length of string constant
48-
min-occurrences: 6 # minimum number of occurrences
49-
50-
issues:
51-
exclude-rules:
52-
- path: _test\.go
53-
linters:
54-
- gosec
55-
- unused
56-
- unparam
57-
- linters:
58-
- golint
59-
text: "should be"
60-
- linters:
61-
- err113
62-
text: "do not define dynamic errors"
63-
- linters:
64-
- stylecheck
65-
text: "(should be|should have name of the form)"
77+
settings:
78+
gofmt:
79+
simplify: true
80+
exclusions:
81+
generated: lax
82+
paths:
83+
- third_party$
84+
- builtin$
85+
- examples$

0 commit comments

Comments
 (0)