-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
56 lines (56 loc) · 1 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
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
# Disabled due to https://github.com/golangci/golangci-lint/issues/3906
- depguard
- dupl
- exhaustive
- exhaustruct
- exportloopref
- gochecknoglobals
- gochecknoinits
- godox
- err113
- gomoddirectives
- nlreturn
- perfsprint # Not useful.
- thelper
- wsl
enable-all: true
linters-settings:
mnd:
ignored-numbers:
- "0"
- "1"
- "2"
- "3"
- "4"
- "5"
- "6"
- "7"
- "8"
- "9"
revive:
rules:
- name: package-comments
disabled: true
tagliatelle:
case:
rules:
json: snake
varnamelen:
ignore-names:
- db # Database
- ev # Event
- id # ID
- ok # OK
- tc # TestCase
- tx # Transaction
run:
concurrency: 4
timeout: 2m