-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
81 lines (76 loc) · 1.49 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
72
73
74
75
76
77
78
79
80
81
run:
modules-download-mode: readonly
timeout: 2m
output:
formats:
- format: colored-line-number
print-issued-lines: true
print-linter-name: true
sort-results: true
linters-settings:
nolintlint:
require-explanation: true
require-specific: true
gci:
skip-generated: true
sections:
- standard
- default
- prefix(github.com/weisshorn-cyd/gocti)
- blank
- dot
varnamelen:
ignore-type-assert-ok: true
ignore-map-index-ok: true
ignore-names:
- id
- i # Iterator
funlen:
lines: 99
statements: 60
ignore-comments: true
depguard:
rules:
main:
allow:
- $gostd
- github.com/weisshorn-cyd/gocti
- github.com/go-viper/mapstructure/v2
- github.com/kelseyhightower/envconfig
- github.com/goccy/go-json
- github.com/stretchr/testify
cyclop:
max-complexity: 12
skip-tests: true
ireturn:
allow:
- anon
- error
- empty
- stdlib
- generic
tagalign:
sort: false
paralleltest:
ignore-missing: true
gocognit:
min-complexity: 50
linters:
enable-all: true
disable:
- dupl
- exhaustruct
- exportloopref # Deprecated
- goimports
- tagliatelle
issues:
exclude-rules:
# disable funlen for test funcs
- source: "^func Test"
linters:
- funlen
# disable lll for gocti tags
- source: "`gocti.*`"
linters:
- lll
exclude-generated: disable