-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.golangci.yaml
57 lines (54 loc) · 1.1 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
linters:
presets:
- bugs
- error
- format
- import
- style
- test
disable:
- depguard
- dupl
- exhaustruct
- gochecknoglobals
- gochecknoinits
- goerr113
- gomnd
- gosmopolitan
- ireturn
- lll
- nlreturn
- varnamelen
- wrapcheck
- wsl
linters-settings:
depguard:
rules:
main:
files:
- '$all'
- '!$test'
deny:
github.com/golang/mock/gomock: Don't use gomock package outside tests.
github.com/stretchr/testify/assert: Don't use assert package outside tests.
github.com/stretchr/testify/require: Don't use require package outside tests.
testing: Don't use testing package outside tests.
exhaustive:
ignore-enum-members: '.*Unknown.*'
gosec:
excludes:
- G401
- G505
revive:
rules:
- name: receiver-naming
severity: error
disabled: false
- name: var-naming
severity: error
disabled: false
issues:
exclude-rules:
- path: (test_\w+|mock)/\w+\.go$
linters:
- revive