Skip to content

Commit

Permalink
chore: rename deprecated gomng linter to mnd
Browse files Browse the repository at this point in the history
  • Loading branch information
rriski committed Aug 30, 2024
1 parent 8bcd218 commit 51f99ae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ issues:
- golint
text: underscore
- linters:
- gomnd
text: "mnd: Magic number: 0o644"
- mnd
text: "Magic number: 0o644"

linters:
disable-all: true
Expand All @@ -30,7 +30,7 @@ linters:
- unused
- vet
- goimports
- gomnd
- mnd

run:
timeout: 10m
2 changes: 1 addition & 1 deletion generators/docs/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion tests/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 51f99ae

Please sign in to comment.