forked from zoncoen/scenarigo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
95 lines (89 loc) · 2.04 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
run:
timeout: 10m
linters:
enable-all: true
disable:
- containedctx
- dupl
- exhaustive
- funlen
- gci
- gochecknoglobals
- gochecknoinits
- gocognit
- godox
- goerr113
- gomnd
- ifshort
- ireturn
- lll
- nestif
- nlreturn
- nosnakecase
- paralleltest
- prealloc
- scopelint
- testpackage
- tparallel
- unparam
- varnamelen
- wrapcheck
- wsl
# deplicated
- deadcode
- exhaustivestruct
- golint
- interfacer
- maligned
- scopelint
- structcheck
- varcheck
# disabled because of generics
- rowserrcheck
- wastedassign
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$'
maintidx:
under: 30
stylecheck:
checks:
- all
# revive has same rules
- -ST1005
- -ST1006