-
Notifications
You must be signed in to change notification settings - Fork 4
/
.golangci.yml
71 lines (70 loc) · 1.26 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
59
60
61
62
63
64
65
66
67
68
69
70
71
linters-settings:
funlen:
lines: 70
# revive:
# enable-all-rules: true
# rules:
# - name: line-length-limit
# severity: warning
# disabled: false
# exclude: [ "" ]
# arguments: [ 100 ]
gocyclo:
min-complexity: 20
gocognit:
min-complexity: 45
issues:
exclude-rules:
# Exclude some linters from running on tests files.
- path: _test\.go
linters:
- gocyclo
- errcheck
- funlen
- goerr113
- gocognit
- dupl
- gosec
- lll
exclude-dirs:
- examples
- mocks
linters:
# enable all available linters
enable-all: true
# enable some additional linters that are not enabled by default
disable:
- funlen
- cyclop
- testpackage
- prealloc
- execinquery
- rowserrcheck
- sqlclosecheck
- wsl
- gomnd
- mnd
- tagliatelle
- musttag
- exhaustruct
- wastedassign
- dupword
- varnamelen
- depguard
- forbidigo
- exportloopref
- ireturn
output:
formats:
- format: colored-line-number
path: stdout
sort-results: true
sort-order:
- linter
- severity
- file # filepath, line, and column.
show-stats: true
run:
go: '1.23'
concurrency: 5
timeout: 5m