-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
60 lines (53 loc) · 1.24 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
linters:
enable-all: true
disable:
- deadcode
- exhaustivestruct
- gci
- goerr113
- gofumpt
- golint
- ifshort
- interfacer
- maligned
- nosnakecase
- scopelint
- structcheck
- varcheck
- wsl
issues:
exclude-rules:
# We need some way to interact with the user and stdout is a good
# choice.
- path: cmd/.+\.go$
linters:
- forbidigo
# Tests are probably going to run long when you include all the
# context directly in the test. It's also possible to run over if
# doing a table test.
- path: _test\.go$
linters:
- funlen
- path: (_test|mocks)\.go$
text: Use of weak random number generator
linters:
- gosec
# Pretty much every field in cobra.Command is optional
- text: cobra.Command is missing fields
linters:
- exhaustruct
linters-settings:
depguard:
rules:
main:
allow:
- $gostd
- github.com/durandj/git-ignore
- github.com/go-git/go-git/v5
- github.com/logrusorgru/aurora/v4
- github.com/stretchr/testify/require
- github.com/spf13/cobra
revive:
rules:
- name: package-comments
disabled: true