-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.golangci.yaml
More file actions
70 lines (66 loc) · 1.27 KB
/
.golangci.yaml
File metadata and controls
70 lines (66 loc) · 1.27 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
version: "2"
linters:
default: none
enable:
- dogsled
- revive
- goprintffuncname
- gosec
- govet
- ineffassign
- lll
- misspell
- nakedret
- staticcheck
- unconvert
- unused
- whitespace
- errname
- dupword
- containedctx
- durationcheck
- errorlint
settings:
mnd:
checks: [argument, case, condition, return]
govet:
disable:
- shadow
lll:
line-length: 200
misspell:
locale: US
revive:
rules:
- {name: redefines-builtin-id, disabled: true}
- {name: nested-structs, disabled: true}
exclusions:
paths:
- gen
- e2e
rules:
- path: _test\.go
linters: [gomnd, bodyclose, gosec]
- linters: [gosec]
text: G107
- linters: [unparam]
text: always receives
- linters: [revive]
text: >-
redundant if ...; err != nil check, just return error instead.
formatters:
enable:
- gofmt
- gci
settings:
gofmt:
rewrite-rules:
- pattern: 'interface{}'
replacement: 'any'
- pattern: 'a[b:len(a)]'
replacement: 'a[b:]'
gci:
sections:
- standard
- default
- prefix(github.com/castai)