-
Notifications
You must be signed in to change notification settings - Fork 1
/
.golangci.yaml
92 lines (89 loc) · 1.58 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
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
run:
tests: true
skip-dirs:
- extern
skip-files:
- _test\.go
- helper/util.go
issues:
exclude-rules:
- linters:
- wsl
text: "branch statements should not be cuddled if block has more than two lines"
- linters:
- wsl
text: "return statements should not be cuddled if block has more than two lines"
linters:
enable-all: true
disable:
- typecheck
- interfacer
- structcheck
- golint
- ifshort
- scopelint
- varcheck
- maligned
- deadcode
- structcheck
- gci
- goimports
- gofumpt
- nolintlint
- ireturn
- exhaustivestruct
- nosnakecase
- nlreturn
- godox
- gomoddirectives
- rowserrcheck
- sqlclosecheck
- wastedassign
- gocognit
- wsl
linters-settings:
revive:
rules:
- name: exported
severity: warning
disabled: false
arguments:
- "disableStutteringCheck"
wsl:
allow-cuddle-declarations: true
force-err-cuddling: true
nilnil:
checked-types:
- func
- iface
- map
- chan
varnamelen:
ignore-names:
- ok
- i
ignore-decls:
- db *geoip2.Reader
- db *gorm.DB
- c testing.T
- e error
- t testing.T
- c echo.Context
- c *cli.Context
paralleltest:
ignore-missing: true
funlen:
lines: 180
statements: 120
cyclop:
max-complexity: 20
wrapcheck:
ignoreSigRegexps:
- \.JSON\(
- \.NoContent\(
- \.Error\(
gomnd:
ignored-numbers:
- '0666'
- '0755'
- '0o755'