-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
59 lines (50 loc) · 1.3 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
run:
timeout: 5m
linters:
enable-all: true
disable:
# Pure insanity
- exhaustruct
- forbidigo
- depguard
- perfsprint
- prealloc
- containedctx
# We're not interested in formatting/sorting imports more than "go fmt" would do
- gci
- gofumpt
- goimports
# We're not a publicly available package, so it's OK to have dynamic errors
- err113
# We will control this ourselves
- varnamelen
- mnd
- gomnd
- paralleltest
# What else we're supposed to return if we've operated on an interface from the beginning?
- ireturn
# False positives
- wsl
- wrapcheck
- tagliatelle
linters-settings:
funlen:
lines: 110
issues:
exclude-dirs:
- internal/server/httprange
exclude-rules:
- path: internal/command/
linters:
# It's OK to use global variables for github.com/spf13/cobra commands
- gochecknoglobals
- path: internal/version/
linters:
# It's OK to use global variables for automatically settings versions through GoReleaser
- gochecknoglobals
# It's OK to use an init() function to automatically calculate the FullVersion, which needs
# to be a variable
- gochecknoinits
- path: internal/server/server_test.go
linters:
- noctx