Merge pull request #4840 from oscr/update-golangci-lint

Update golangci-lint version (1.49.0 -> 1.50.1) and enable linters: dupword and testableexamples
This commit is contained in:
Kubernetes Prow Robot
2022-11-17 10:36:29 -08:00
committed by GitHub
4 changed files with 6 additions and 3 deletions

View File

@@ -108,6 +108,7 @@ func (c *Converter) prepareWrapper(content string) string {
}
// assign to plugin variable
if strings.TrimSpace(line) == "var plugin resmap.Configurable" {
//nolint:dupword
line += `
// KustomizePlugin is a global variable defined in every plugin
plugin = &KustomizePlugin