/
.golangci.yml
58 lines (54 loc) · 1.09 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
# More info on config here: https://github.com/golangci/golangci-lint#config-file
run:
go: '1.18'
deadline: 120s
issues-exit-code: 1
tests: true
skip-dirs:
- bin
skip-files:
- \.pb\.go$
- \.pb\.gw\.go$
output:
format: colored-line-number
print-issued-lines: true
print-linter-name: true
linters-settings:
dupl:
threshold: 100
gomnd:
ignored-files:
- '_test_data/*'
linters:
disable:
- contextcheck #is disabled because of go1.18
- gosimple #is disabled because of go1.18
- staticcheck #is disabled because of go1.18
- structcheck #is disabled because of go1.18
- unused #is disabled because of go1.18
enable:
- varcheck
- typecheck
- goconst
- gosec
- goimports
- megacheck
- exportloopref
- containedctx
- decorder
- depguard
- dupl
- errname
- errorlint
- exportloopref
- goconst
- goerr113
- gofmt
- nilnil
- lll
- gomnd
#- cyclop TODO
issues:
exclude-use-default: false
exclude:
- Using the variable on range scope `tt` in function literal