Update golangci-lint version (1.49.0 -> 1.50.1) and enable linters dupword and testableexamples

This commit is contained in:
Oscar Utbult
2022-10-22 14:29:06 +02:00
parent 997e6fcc63
commit e16b0f0dfc
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