-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
58 lines (58 loc) · 2.2 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
issues:
exclude:
- G404
- ST1000
exclude-use-default: false
linters:
disable:
# Note that the typecheck linter does not exist, see: https://github.com/golangci/golangci-lint/issues/2912
- deadcode # The linter 'deadcode' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused.
- dupl
- exhaustive
- exhaustivestruct
- exhaustruct
- gochecknoglobals
- gochecknoinits
- godox
- goerr113
- golint # The linter 'golint' is deprecated (since v1.41.0) due to: The repository of the linter has been archived by the owner. Replaced by revive.
- gomoddirectives
- ifshort # The linter 'ifshort' is deprecated (since v1.48.0) due to: The repository of the linter has been deprecated by the owner.
- interfacer # The linter 'interfacer' is deprecated (since v1.38.0) due to: The repository of the linter has been archived by the owner.
- maligned # The linter 'maligned' is deprecated (since v1.38.0) due to: The repository of the linter has been archived by the owner. Replaced by govet 'fieldalignment'.
- nlreturn
- nosnakecase # The linter 'nosnakecase' is deprecated (since v1.48.1) due to: The repository of the linter has been deprecated by the owner. Replaced by revive(var-naming).
- scopelint # The linter 'scopelint' is deprecated (since v1.39.0) due to: The repository of the linter has been deprecated by the owner. Replaced by exportloopref.
- structcheck # The linter 'structcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused.
- thelper
- varcheck # The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused.
- wsl
enable-all: true
linters-settings:
revive:
rules:
- name: package-comments
disabled: true
gomnd:
ignored-numbers:
- "0"
- "1"
- "2"
- "3"
- "4"
- "5"
- "6"
- "7"
- "8"
- "9"
varnamelen:
ignore-names:
- db # Database
- ev # Event
- id # ID
- ok # OK
- tc # TestCase
- tx # Transaction
run:
concurrency: 4
timeout: 60s