-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
54 lines (50 loc) · 1020 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
46
47
48
49
50
51
52
53
54
# Refer to golangci-lint's example config file for more options and information:
# https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml
run:
timeout: 5m
modules-download-mode: readonly
linters:
enable-all: true
disable:
- dupl
- funlen
- gochecknoglobals
- lll
- revive
- varnamelen
linters-settings:
asasalint:
ignore-test: true
cyclop:
max-complexity: 20
depguard:
rules:
main:
files:
- "!$test"
allow:
- $gostd
- github.com/greencoda
- github.com/hashicorp/go-envparse
- github.com/pelletier/go-toml
- github.com/davecgh/go-spew/spew
ireturn:
allow:
- anon
- error
- empty
- stdlib
- segment
paralleltest:
ignore-missing: true
interfacebloat:
max: 20
exhaustive:
ignore-enum-members: "reflect.+"
gosec:
excludes:
- G404
issues:
exclude-use-default: false
max-issues-per-linter: 0
max-same-issues: 0