File tree Expand file tree Collapse file tree 3 files changed +12
-16
lines changed Expand file tree Collapse file tree 3 files changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -88,10 +88,6 @@ linters-settings:
88
88
- wrapperFunc
89
89
- rangeValCopy
90
90
- hugeParam
91
- gosec :
92
- excludes :
93
- - G307 # Deferring unsafe method "Close" on type "\*os.File"
94
- - G108 # Profiling endpoint is automatically exposed on /debug/pprof
95
91
importas :
96
92
no-unaliased : true
97
93
alias :
@@ -264,14 +260,21 @@ issues:
264
260
text : always receives
265
261
# Dot imports for gomega and ginkgo are allowed
266
262
# within test files and test utils.
267
- - path : _test\.go
263
+ - linters :
264
+ - revive
265
+ - stylecheck
266
+ path : _test\.go
268
267
text : should not use dot imports
269
- - path : (framework|e2e)/.*.go
268
+ - linters :
269
+ - revive
270
+ - stylecheck
271
+ path : (framework|e2e)/.*.go
270
272
text : should not use dot imports
271
- - path : util/defaulting/defaulting.go
273
+ - linters :
274
+ - revive
275
+ - stylecheck
276
+ path : util/defaulting/defaulting.go
272
277
text : should not use dot imports
273
- - path : _test\.go
274
- text : cyclomatic complexity
275
278
# Append should be able to assign to a different var/slice.
276
279
- linters :
277
280
- gocritic
@@ -313,11 +316,6 @@ issues:
313
316
- stylecheck
314
317
text : " ST1016: methods on the same type should have the same receiver name"
315
318
path : .*(api|types)\/.*\/conversion.*\.go$
316
- # hack/tools
317
- - linters :
318
- - typecheck
319
- text : import (".+") is a program, not an importable package
320
- path : ^tools\.go$
321
319
# We don't care about defer in for loops in test files.
322
320
- linters :
323
321
- gocritic
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ import (
21
21
"context"
22
22
"flag"
23
23
"fmt"
24
- _ "net/http/pprof"
25
24
"os"
26
25
goruntime "runtime"
27
26
"time"
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ import (
21
21
"context"
22
22
"flag"
23
23
"fmt"
24
- _ "net/http/pprof"
25
24
"os"
26
25
goruntime "runtime"
27
26
"time"
You can’t perform that action at this time.
0 commit comments