File tree Expand file tree Collapse file tree 1 file changed +50
-58
lines changed Expand file tree Collapse file tree 1 file changed +50
-58
lines changed Original file line number Diff line number Diff line change 1
1
run :
2
+ timeout : 1m
2
3
issues-exit-code : 1
3
4
tests : true
4
- skip-dirs :
5
- - " vendor$ "
5
+ skip-dirs : []
6
+ skip-dirs-use-default : true
6
7
skip-files :
7
8
- " .*\\ .pb\\ .go"
8
9
- " .*(.|_)gen\\ .go"
9
- modules-download-mode : readonly
10
+ modules-download-mode : vendor
11
+ allow-parallel-runners : true
12
+
13
+ output :
14
+ format : colored-line-number
15
+ print-issued-lines : true
16
+ print-linter-name : true
10
17
11
18
linters-settings :
12
19
dupl :
13
- threshold : 400
20
+ threshold : 100
14
21
errcheck :
15
22
check-type-assertions : true
16
23
check-blank : true
17
24
exclude : .errcheckignore
18
25
funlen :
19
26
lines : 80
20
- statements : 40
27
+ statements : 80
28
+ gocognit :
29
+ min-complexity : 10
21
30
goconst :
22
31
min-len : 3
23
32
min-occurrences : 3
24
33
gocritic :
25
34
enabled-tags :
26
35
- diagnostic
36
+ - style
37
+ - performance
27
38
- experimental
28
39
- opinionated
29
- - performance
30
- - style
31
40
settings :
32
41
hugeParam :
33
42
sizeThreshold : 80
@@ -36,50 +45,19 @@ linters-settings:
36
45
rangeValCopy :
37
46
sizeThreshold : 128
38
47
gocyclo :
39
- min-complexity : 10
48
+ min-complexity : 15
40
49
gofmt :
41
50
simplify : true
42
51
goimports :
43
52
local-prefixes : go.lsp.dev/jsonrpc2
44
53
golint :
45
54
min-confidence : 0.3
46
55
govet :
47
- enable :
48
- - asmdecl
49
- - assign
50
- - atomic
51
- - atomicalign
52
- - bools
53
- - buildssa
54
- - buildtag
55
- - cgocall
56
- - composite
57
- - copylock
58
- - ctrlflow
59
- - deepequalerrors
60
- - errorsas
61
- - findcall
62
- - httpresponse
63
- - inspect
64
- - loopclosure
65
- - lostcancel
66
- - nilfunc
67
- - nilness
68
- - pkgfact
69
- - printf
70
- - shift
71
- - sortslice
72
- - stdmethods
73
- - structtag
74
- - tests
75
- - unmarshal
76
- - unreachable
77
- - unsafeptr
78
- - unusedresult
56
+ enable-all : true
79
57
disable :
80
- - shadow
58
+ - shadow
81
59
lll :
82
- line-length : 180
60
+ line-length : 120
83
61
tab-width : 1
84
62
maligned :
85
63
suggest-new : false
@@ -90,48 +68,59 @@ linters-settings:
90
68
prealloc :
91
69
simple : true
92
70
range-loops : true
93
- for-loops : false
71
+ for-loops : true # default: false
94
72
unparam :
95
- algo : cha
96
73
check-exported : true
74
+ algo : cha
97
75
unused :
98
76
check-exported : false
77
+ whitespace :
78
+ multi-if : true
79
+ multi-func : true
99
80
100
81
linters :
101
- # disabled:
102
- # - funlen
82
+ disable-all : true
83
+ disabled :
84
+ # - asciicheck
103
85
# - gochecknoglobals
104
86
# - gochecknoinits
105
- # - gocyclo
106
87
# - godox
88
+ # - goerr113
107
89
# - gomnd
90
+ # - gosec
108
91
# - maligned
109
- # - megacheck
110
92
# - scopelint
93
+ # - testpackage
111
94
# - wsl
112
- disable-all : true
113
95
enable :
114
96
- bodyclose
115
97
- deadcode
116
98
- depguard
117
99
- dogsled
118
100
- dupl
119
101
- errcheck
102
+ - exhaustive
103
+ - funlen
120
104
- gocognit
121
105
- goconst
122
106
- gocritic
107
+ - gocyclo
108
+ - godot
123
109
- gofmt
124
110
- goimports
125
111
- golint
126
- - gosec
112
+ - goprintffuncname
127
113
- gosimple
128
114
- govet
129
115
- ineffassign
130
116
- interfacer
131
- - lll
132
117
- misspell
133
118
- nakedret
119
+ - noctx
120
+ - nestif
134
121
- prealloc
122
+ - nolintlint
123
+ - rowserrcheck
135
124
- staticcheck
136
125
- structcheck
137
126
- stylecheck
@@ -166,20 +155,23 @@ issues:
166
155
- unused
167
156
- varcheck
168
157
text : " `reqDone` is unused"
169
- - path : errors .go
158
+ - path : codes .go
170
159
linters :
171
160
- deadcode
172
161
- unused
173
162
- varcheck
174
163
text : " `codeServerErrorStart` is unused"
175
- - path : errors .go
164
+ - path : codes .go
176
165
linters :
177
166
- deadcode
178
167
- unused
179
168
- varcheck
180
169
text : " `codeServerErrorEnd` is unused"
181
-
182
- output :
183
- format : colored-line-number
184
- print-issued-lines : true
185
- print-linter-name : true
170
+ - path : jsonrpc2.go
171
+ linters :
172
+ - funlen
173
+ - gocyclo
174
+ - gocognit
175
+ - path : stream.go
176
+ linters :
177
+ - gocognit
You can’t perform that action at this time.
0 commit comments