File tree Expand file tree Collapse file tree 1 file changed +28
-33
lines changed Expand file tree Collapse file tree 1 file changed +28
-33
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ output:
14
14
format : colored-line-number
15
15
print-issued-lines : true
16
16
print-linter-name : true
17
+ uniq-by-line : true
17
18
18
19
linters-settings :
19
20
dupl :
@@ -23,8 +24,8 @@ linters-settings:
23
24
check-blank : true
24
25
exclude : .errcheckignore
25
26
funlen :
26
- lines : 80
27
- statements : 80
27
+ lines : 60
28
+ statements : 40
28
29
gocognit :
29
30
min-complexity : 10
30
31
goconst :
@@ -48,14 +49,19 @@ linters-settings:
48
49
min-complexity : 15
49
50
gofmt :
50
51
simplify : true
52
+ gofumpt :
53
+ extra-rules : true
51
54
goimports :
52
- local-prefixes : go.lsp.dev/jsonrpc2
55
+ local-prefixes : github.com/
53
56
golint :
54
57
min-confidence : 0.3
55
58
govet :
56
59
enable-all : true
57
60
disable :
58
61
- shadow
62
+ depguard :
63
+ list-type : blacklist
64
+ include-go-root : false
59
65
lll :
60
66
line-length : 120
61
67
tab-width : 1
@@ -79,19 +85,8 @@ linters-settings:
79
85
multi-func : true
80
86
81
87
linters :
88
+ fast : false
82
89
disable-all : true
83
- disabled :
84
- # - asciicheck
85
- # - gochecknoglobals
86
- # - gochecknoinits
87
- # - godox
88
- # - goerr113
89
- # - gomnd
90
- # - gosec
91
- # - maligned
92
- # - scopelint
93
- # - testpackage
94
- # - wsl
95
90
enable :
96
91
- bodyclose
97
92
- deadcode
@@ -107,6 +102,7 @@ linters:
107
102
- gocyclo
108
103
- godot
109
104
- gofmt
105
+ - gofumpt
110
106
- goimports
111
107
- golint
112
108
- goprintffuncname
@@ -116,10 +112,10 @@ linters:
116
112
- interfacer
117
113
- misspell
118
114
- nakedret
119
- - noctx
120
115
- nestif
121
- - prealloc
116
+ - noctx
122
117
- nolintlint
118
+ - prealloc
123
119
- rowserrcheck
124
120
- staticcheck
125
121
- structcheck
@@ -130,6 +126,18 @@ linters:
130
126
- unused
131
127
- varcheck
132
128
- whitespace
129
+ disabled :
130
+ # - asciicheck
131
+ # - gochecknoglobals
132
+ # - gochecknoinits
133
+ # - godox
134
+ # - goerr113
135
+ # - gomnd
136
+ # - gosec
137
+ # - maligned
138
+ # - scopelint
139
+ # - testpackage
140
+ # - wsl
133
141
134
142
issues :
135
143
exclude-use-default : true
@@ -148,25 +156,12 @@ issues:
148
156
- deadcode
149
157
- unused
150
158
- varcheck
151
- text : " `reqWaiting` is unused"
152
- - path : jsonrpc2.go
153
- linters :
154
- - deadcode
155
- - unused
156
- - varcheck
157
- text : " `reqDone` is unused"
158
- - path : codes.go
159
- linters :
160
- - deadcode
161
- - unused
162
- - varcheck
163
- text : " `codeServerErrorStart` is unused"
164
- - path : codes.go
165
- linters :
159
+ text : " `(reqWaiting|reqDone)` is unused"
160
+ - linters :
166
161
- deadcode
167
162
- unused
168
163
- varcheck
169
- text : " `codeServerErrorEnd` is unused"
164
+ text : " `(codeServerErrorStart| codeServerErrorEnd) ` is unused"
170
165
- path : jsonrpc2.go
171
166
linters :
172
167
- funlen
You can’t perform that action at this time.
0 commit comments