-
Notifications
You must be signed in to change notification settings - Fork 8
/
.golangci.yaml
48 lines (45 loc) · 1.08 KB
/
.golangci.yaml
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
# prerequisite:
# [install golangci-lint](https://golangci-lint.run/usage/install/#local-installation)
run:
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 5m
skip-files:
- .peg\.go
- .*\.pb\.go
skip-dirs:
- vendor
linters:
enable:
- deadcode
- depguard
- errcheck
- exportloopref
- gocritic
- gocyclo
- gofmt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- prealloc
- revive
- staticcheck
- structcheck
- typecheck
- unconvert
- unused
- varcheck
disable:
- gochecknoglobals # we allow global variables in packages
- gochecknoinits # we allow inits in packages
- goconst # we allow repeated values to go un-const'd
- lll # we allow any line length
- unparam # we allow function calls to name unused parameters
issues:
exclude-rules:
# Probably some broken linter for generics?
- linters: [ revive ]
text: 'receiver-naming: receiver name \S+ should be consistent with previous receiver name \S+ for invalid-type'