Skip to content

Commit bf6e6ad

Browse files
authored
Merge pull request #5085 from koba1t/chore/update_golangci_to_1.51.2
update golangci-lint to v1.51.2
2 parents e8b521e + e1094da commit bf6e6ad

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.golangci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ linters:
9393
- interfacebloat
9494
- loggercheck
9595
- reassign
96+
- ginkgolinter
97+
- gocheckcompilerdirectives
98+
- musttag
9699

97100
linters-settings:
98101
dupl:

Makefile-tools.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright 2022 The Kubernetes Authors.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
GOLANGCI_LINT_VERSION=v1.50.1
4+
GOLANGCI_LINT_VERSION=v1.51.2
55

66
MYGOBIN = $(shell go env GOBIN)
77
ifeq ($(MYGOBIN),)

api/internal/localizer/builtinplugins.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ func (lbp *localizeBuiltinPlugins) localizeAll(node *yaml.RNode) error {
131131
// We rely on the build command to throw errors for nodes in
132132
// built-in plugins that are sequences when expected to be scalar,
133133
// and vice versa.
134+
//nolint: exhaustive
134135
switch node.YNode().Kind {
135136
case yaml.SequenceNode:
136137
return errors.Wrap(node.VisitElements(lbp.localizeScalar))

0 commit comments

Comments
 (0)