Skip to content

Commit 082a555

Browse files
committed
chore(lint): update golangci-lint configuration and add backup file
1 parent 3d944ef commit 082a555

File tree

1 file changed

+56
-46
lines changed

1 file changed

+56
-46
lines changed

.golangci.yml

Lines changed: 56 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,73 @@
1-
run:
2-
timeout: 3m
3-
4-
issues:
5-
max-issues-per-linter: 100
6-
max-same-issues: 100
7-
exclude:
8-
- "Added to album: "
9-
10-
linters-settings:
11-
gocritic:
12-
enabled-checks:
13-
# - captLocal
14-
# - singleCaseSwitch
15-
# - switchTrue
16-
- httpNoBody
17-
- emptyStringTest
18-
- builtinShadow
19-
- exposedSyncMutex
20-
enabled-tags:
21-
- diagnostic
22-
disabled-tags:
23-
- performance
24-
- style
25-
- experimental
26-
- opinionated
27-
1+
version: "2"
282
linters:
29-
disable-all: true
3+
default: none
304
enable:
31-
- gocritic
32-
- gosimple
33-
- govet
34-
- ineffassign
35-
- misspell
36-
- whitespace
37-
- gci
38-
- gofmt
39-
- goimports
40-
- loggercheck
415
- asasalint
426
- contextcheck
7+
- copyloopvar
438
- decorder
449
- dogsled
10+
- errcheck
4511
- errchkjson
46-
- copyloopvar
4712
- ginkgolinter
4813
- gocheckcompilerdirectives
14+
- goconst
15+
- gocritic
4916
- goprintffuncname
17+
- govet
18+
- ineffassign
19+
- loggercheck
20+
- makezero
5021
- mirror
22+
- misspell
5123
- nakedret
52-
- gofumpt
53-
- stylecheck
54-
- unused
55-
- goconst
56-
- makezero
57-
- unparam
5824
- prealloc
5925
- predeclared
26+
- staticcheck
6027
- unconvert
6128
- unparam
29+
- unused
6230
- whitespace
63-
- errcheck
31+
settings:
32+
gocritic:
33+
enabled-checks:
34+
- httpNoBody
35+
- emptyStringTest
36+
- builtinShadow
37+
- exposedSyncMutex
38+
enabled-tags:
39+
- diagnostic
40+
disabled-tags:
41+
- performance
42+
- style
43+
- experimental
44+
- opinionated
45+
exclusions:
46+
generated: lax
47+
presets:
48+
- comments
49+
- common-false-positives
50+
- legacy
51+
- std-error-handling
52+
rules:
53+
- path: (.+)\.go$
54+
text: 'Added to album: '
55+
paths:
56+
- third_party$
57+
- builtin$
58+
- examples$
59+
issues:
60+
max-issues-per-linter: 100
61+
max-same-issues: 100
62+
formatters:
63+
enable:
64+
- gci
65+
- gofmt
66+
- gofumpt
67+
- goimports
68+
exclusions:
69+
generated: lax
70+
paths:
71+
- third_party$
72+
- builtin$
73+
- examples$

0 commit comments

Comments
 (0)