mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-14 10:30:59 +00:00
Merge pull request #5085 from koba1t/chore/update_golangci_to_1.51.2
update golangci-lint to v1.51.2
This commit is contained in:
@@ -93,6 +93,9 @@ linters:
|
|||||||
- interfacebloat
|
- interfacebloat
|
||||||
- loggercheck
|
- loggercheck
|
||||||
- reassign
|
- reassign
|
||||||
|
- ginkgolinter
|
||||||
|
- gocheckcompilerdirectives
|
||||||
|
- musttag
|
||||||
|
|
||||||
linters-settings:
|
linters-settings:
|
||||||
dupl:
|
dupl:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Copyright 2022 The Kubernetes Authors.
|
# Copyright 2022 The Kubernetes Authors.
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
GOLANGCI_LINT_VERSION=v1.50.1
|
GOLANGCI_LINT_VERSION=v1.51.2
|
||||||
|
|
||||||
MYGOBIN = $(shell go env GOBIN)
|
MYGOBIN = $(shell go env GOBIN)
|
||||||
ifeq ($(MYGOBIN),)
|
ifeq ($(MYGOBIN),)
|
||||||
|
|||||||
@@ -131,6 +131,7 @@ func (lbp *localizeBuiltinPlugins) localizeAll(node *yaml.RNode) error {
|
|||||||
// We rely on the build command to throw errors for nodes in
|
// We rely on the build command to throw errors for nodes in
|
||||||
// built-in plugins that are sequences when expected to be scalar,
|
// built-in plugins that are sequences when expected to be scalar,
|
||||||
// and vice versa.
|
// and vice versa.
|
||||||
|
//nolint: exhaustive
|
||||||
switch node.YNode().Kind {
|
switch node.YNode().Kind {
|
||||||
case yaml.SequenceNode:
|
case yaml.SequenceNode:
|
||||||
return errors.Wrap(node.VisitElements(lbp.localizeScalar))
|
return errors.Wrap(node.VisitElements(lbp.localizeScalar))
|
||||||
|
|||||||
Reference in New Issue
Block a user