-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
133 lines (106 loc) · 2.18 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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
linters:
disable-all: true
enable:
- bodyclose
- containedctx
- durationcheck
- errcheck
- errchkjson
- errname
- exhaustive
- goconst
- gocritic
- gocyclo
- godot
- gofumpt
- goimports
- gosimple
- govet
- ineffassign
- misspell
- mnd
- nilerr
- nilnil
- nolintlint
- nakedret
- predeclared
- reassign
- revive
- staticcheck
- tagliatelle
- tenv
- testpackage
- thelper
- unconvert
- unparam
- unused
- whitespace
issues:
exclude-rules:
- path: test_test.go
linters:
- thelper # The entire package is effectively a t.Helper
- goconst # Lots of repetition in here
linters-settings:
errcheck:
check-type-assertions: true
check-blank: true
exhaustive:
check:
- switch
- map
default-signifies-exhaustive: true
gocyclo:
min-complexity: 20
staticcheck:
checks: ["all"]
gosimple:
checks: ["all"]
govet:
enable-all: true
revive:
max-open-files: 256
ignore-generated-header: true
rules:
- name: argument-limit
disabled: false
arguments: [5]
- name: atomic
disabled: false
- name: blank-imports
disabled: false
- name: call-to-gc
disabled: false
- name: constant-logical-expr
disabled: false
- name: context-as-argument
disabled: false
- name: datarace
disabled: false
- name: deep-exit
disabled: false
- name: defer
disabled: false
- name: dot-imports
disabled: false
- name: early-return
disabled: false
- name: exported
arguments:
- checkPrivateReceivers
- name: modifies-value-receiver
disabled: false
- name: package-comments
disabled: false
- name: range
disabled: false
- name: range-val-in-closure
disabled: false
- name: range-val-address
disabled: false
- name: time-equal
disabled: false
- name: use-any
disabled: false
- name: waitgroup-by-value
disabled: false