-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
84 lines (80 loc) · 1.27 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
82
83
84
run:
timeout: 5m
modules-download-mode: readonly
linters:
disable-all: true
fast: false
enable:
- bodyclose
- dogsled
- durationcheck
- errcheck
- exportloopref
- govet
- gosimple
- gofmt
- gofumpt
- goconst
- goimports
- gomnd
- gocyclo
- ineffassign
- lll
- prealloc
- revive
- staticcheck
- typecheck
- unused
- whitespace
- unconvert
# don't enable:
# - asciicheck
# - deadcode
# - scopelint
# - structcheck
# - gochecknoglobals
# - gocognit
# - godot
# - godox
# - goerr113
# - interfacer
# - maligned
# - nestif
# - prealloc
# - testpackage
# - stylrcheck
# - varcheck
# - wastedassign
# - wsl
linters-settings:
govet:
check-shadowing: true
whitespace:
multi-func: true
lll:
line-length: 160
gomnd:
checks:
- case
- condition
- return
goconst:
ignore-tests: true
gocyclo:
min-complexity: 50
issues:
exclude:
- Id
exclude-rules:
# Exclude some linters from running on tests files.
- path: _test\.go
linters:
- lll
- path: generate.go
linters:
- gofmt
- lll
- path: pkg/sessions/sessions.go
linters:
- gomnd
- revive