-
Notifications
You must be signed in to change notification settings - Fork 6
/
.golangci.yml
45 lines (42 loc) · 918 Bytes
/
.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
linters:
fast: false
enable-all: true
disable:
- bodyclose
- dupl
- gochecknoglobals
- gosec
- lll
- wsl
- testpackage
# deprecated linters
- maligned
- interfacer
- ifshort
- golint
- scopelint
- structcheck
- deadcode
- varcheck
- nosnakecase
- exhaustivestruct
linters-settings:
tagliatelle:
case:
use-field-name: true
rules:
json: snake
yaml: snake
depguard:
rules:
main:
allow:
- "$gostd"
- "github.com/selectel/domains-go/pkg/v2"
- "github.com/jarcoal/httpmock"
- "github.com/stretchr/testify/assert"
- "github.com/stretchr/testify/require"
- "github.com/stretchr/testify/suite"
deny:
- pkg: io/ioutil
desc: The io/ioutil package has been deprecated, see https://go.dev/doc/go1.16#ioutil