diff --git a/.golangci.yml b/.golangci.yml index 9074fe21..9079a713 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -12,8 +12,8 @@ issues: - golint text: underscore - linters: - - gomnd - text: "mnd: Magic number: 0o644" + - mnd + text: "Magic number: 0o644" linters: disable-all: true @@ -30,7 +30,7 @@ linters: - unused - vet - goimports - - gomnd + - mnd run: timeout: 10m diff --git a/generators/docs/validator.go b/generators/docs/validator.go index 5cb602cc..9e330a2f 100644 --- a/generators/docs/validator.go +++ b/generators/docs/validator.go @@ -170,7 +170,7 @@ func setUsageExamples(examplesDir string, validators map[string]schemaValidator, Value: strings.TrimSpace(string(exampleData)), } title := strings.Split(match, ".") - // trunk-ignore(golangci-lint/gomnd): splits foo.title.yaml and takes the middle part + // nolint:mnd // splits foo.title.yaml and takes the middle part if len(title) > 2 { // Just takes the part after the kind name example.Title = title[1] diff --git a/tests/session.go b/tests/session.go index 677a161b..a9d318ea 100644 --- a/tests/session.go +++ b/tests/session.go @@ -308,7 +308,7 @@ func getNamespacedName(keys ...string) (types.NamespacedName, error) { case 1: name = keys[0] namespace = defaultNamespace - case 2: //nolint:gomnd + case 2: //nolint:mnd name = keys[0] namespace = keys[1] default: