-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
.golangci.yml
113 lines (106 loc) · 2.29 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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
run:
timeout: 10m
linters:
enable-all: true
disable:
- containedctx
- contextcheck
- depguard
- dupl
- err113
- exhaustive
- exhaustruct
- funlen
- gci
- gochecknoglobals
- gochecknoinits
- gocognit
- godox
- interfacebloat
- ireturn
- lll
- mnd
- nestif
- nlreturn
- paralleltest
- perfsprint
- prealloc
- testpackage
- tparallel
- unparam
- varnamelen
- wrapcheck
- wsl
# deprecated
- execinquery
- exportloopref
- gomnd
# disabled because of generics
- rowserrcheck
- wastedassign
# TODO: fix
- copyloopvar
- cyclop
- errcheck
- forbidigo
- goconst
- gocyclo
- govet
- inamedparam
- intrange
- maintidx
- nilnil
- predeclared
- revive
- staticcheck
- stylecheck
- tagliatelle
skip-dirs:
- gen
issues:
exclude-rules:
- path: _test.go
linters:
- dupword
- exhaustruct
- forcetypeassert
- goconst
- maintidx
- noctx
- linters:
- staticcheck
text: 'SA1019: "github.com/golang/protobuf' # TODO
linters-settings:
cyclop:
max-complexity: 25
exhaustive:
default-signifies-exhaustive: true
exhaustruct:
exclude:
- 'cobra\.Command$'
- 'http\.Client$'
- 'http\.Server$'
- 'xml\.Name$'
- 'github\.com/zoncoen/scenarigo/cmd/scenarigo/cmd/plugin.overrideModule$'
- 'github\.com/zoncoen/scenarigo/cmd/scenarigo/cmd/plugin.replaceDiff$'
- 'github\.com/zoncoen/scenarigo/cmd/scenarigo/cmd/plugin.requireDiff$'
- 'github\.com/zoncoen/scenarigo/errors\.MultiPathError$'
- 'github\.com/zoncoen/scenarigo/errors\.PathError$'
- 'github\.com/zoncoen/scenarigo/internal/testutil\.reporter$'
- 'github\.com/zoncoen/scenarigo/mock/protocol/http\.server$'
- 'github\.com/zoncoen/scenarigo/reporter\..+Report$'
- 'github\.com/zoncoen/scenarigo/reporter\.[a-z].+$'
- 'github\.com/zoncoen/scenarigo/template/ast\..+$'
- 'github\.com/zoncoen/scenarigo/template/parser\..+$'
- 'github\.com/zoncoen/scenarigo/template\.Template$'
gosec:
excludes:
- G115
maintidx:
under: 30
stylecheck:
checks:
- all
# revive has same rules
- -ST1005
- -ST1006