Repository navigation
Expand file tree
/
Copy path.golangci.yaml
More file actions
115 lines (112 loc) · 2.13 KB
/
Copy path.golangci.yaml
File metadata and controls
115 lines (112 loc) · 2.13 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
version: "2"
run:
timeout: 5m
linters:
default: all
disable:
- depguard
- exhaustruct
- exhaustruct_v5
- gochecknoinits
- nonamedreturns
- wsl
- wsl_v5
- lll
- ireturn
- testpackage
settings:
funlen:
lines: 60
statements: 60
gocyclo:
min-complexity: 15
cyclop:
max-complexity: 15
tagliatelle:
case:
use-field-name: true
extended-rules:
json:
case: camel
extra-initialisms: true
initialism-overrides:
ID: true
URL: true
CPU: true
API: true
UUID: true
UID: true
wrapcheck:
extra-ignore-sigs:
- .Err()
- .Mark(
- .RoundTrip(
varnamelen:
max-distance: 5
min-name-length: 3
check-receiver: false
check-return: false
ignore-type-assert-ok: false
ignore-map-index-ok: false
ignore-chan-recv-ok: false
ignore-decls:
- wg sync.WaitGroup
- wg *sync.WaitGroup
- mu sync.Mutex
- ok bool
ignore-names:
- err
- ctx
- id
- ok
- i
- t
- b
- v
- w
- r
- c
- m
- n
- tt
- rw
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- path: _test\.go
linters:
- funlen
- gocyclo
- cyclop
- dupl
- gosec
- noinlineerr
- paralleltest
- path: _test\.go
text: "dot-imports"
linters:
- revive
- path: cmd/ailine/main\.go
linters:
- gochecknoglobals
- forbidigo
- path: internal/
linters:
- gochecknoglobals
- path: internal/usage/types\.go
linters:
- tagliatelle
- path: cmd/ailine/main\.go
text: "tagliatelle"
linters:
- tagliatelle
formatters:
enable:
- gofmt
- gofumpt
- goimports