mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
Update golangci-lint version (1.49.0 -> 1.50.1) and enable linters dupword and testableexamples
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user