Skip to content

Commit ffc81a8

Browse files
authored
Merge pull request #5572 from corneliusweig/w/upgrade-linter
Bump golangci-lint to v1.20.0
2 parents 6c5e432 + d591d81 commit ffc81a8

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ MINIKUBE_RELEASES_URL=https://github.com/kubernetes/minikube/releases/download
5151

5252
KERNEL_VERSION ?= 4.15
5353
# latest from https://github.com/golangci/golangci-lint/releases
54-
GOLINT_VERSION ?= v1.18.0
54+
GOLINT_VERSION ?= v1.20.0
5555
# Limit number of default jobs, to avoid the CI builds running out of memory
5656
GOLINT_JOBS ?= 4
5757
# see https://github.com/golangci/golangci-lint#memory-usage-of-golangci-lint
58-
GOLINT_GOGC ?= 8
58+
GOLINT_GOGC ?= 100
5959
# options for lint (golangci-lint)
60-
GOLINT_OPTIONS = --deadline 4m \
60+
GOLINT_OPTIONS = --timeout 4m \
6161
--build-tags "${MINIKUBE_INTEGRATION_BUILD_TAGS}" \
6262
--enable goimports,gocritic,golint,gocyclo,misspell,nakedret,stylecheck,unconvert,unparam \
6363
--exclude 'variable on range scope.*in function literal|ifElseChain'

pkg/minikube/extract/extract.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ func checkKeyValueExpression(kvp *ast.KeyValueExpr, e *state) {
385385

386386
// Ok now this is just a mess
387387
if help, ok := kvp.Value.(*ast.BinaryExpr); ok {
388-
s := checkBinaryExpression(help, e)
388+
s := checkBinaryExpression(help)
389389
if s != "" {
390390
e.translations[s] = ""
391391
}
@@ -394,7 +394,7 @@ func checkKeyValueExpression(kvp *ast.KeyValueExpr, e *state) {
394394
}
395395

396396
// checkBinaryExpression checks binary expressions, stuff of the form x + y, for strings and concats them
397-
func checkBinaryExpression(b *ast.BinaryExpr, e *state) string {
397+
func checkBinaryExpression(b *ast.BinaryExpr) string {
398398
// Check the left side
399399
var s string
400400
if l, ok := b.X.(*ast.BasicLit); ok {
@@ -410,7 +410,7 @@ func checkBinaryExpression(b *ast.BinaryExpr, e *state) string {
410410
}
411411

412412
if b1, ok := b.X.(*ast.BinaryExpr); ok {
413-
if x := checkBinaryExpression(b1, e); x != "" {
413+
if x := checkBinaryExpression(b1); x != "" {
414414
s += x
415415
}
416416
}
@@ -429,7 +429,7 @@ func checkBinaryExpression(b *ast.BinaryExpr, e *state) string {
429429
}
430430

431431
if b1, ok := b.Y.(*ast.BinaryExpr); ok {
432-
if x := checkBinaryExpression(b1, e); x != "" {
432+
if x := checkBinaryExpression(b1); x != "" {
433433
s += x
434434
}
435435
}

pkg/minikube/tunnel/tunnel_manager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ func (mgr *Manager) run(ctx context.Context, t controller, ready, check, done ch
122122
}
123123
}
124124

125-
func (mgr *Manager) cleanup(t controller) *Status {
126-
return t.cleanup()
125+
func (mgr *Manager) cleanup(t controller) {
126+
t.cleanup()
127127
}
128128

129129
// CleanupNotRunningTunnels cleans up tunnels that are not running

0 commit comments

Comments
 (0)