Skip to content

Commit

Permalink
fix: gomnd deprecated configuration compatibility (#4768)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed May 28, 2024
1 parent aea73fb commit 88f60c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/golinters/mnd/mnd.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ func NewGoMND(settings *config.GoMndSettings) *goanalysis.Linter {

if settings != nil && len(settings.Settings) > 0 {
// Convert deprecated setting.
linterCfg = settings.Settings
linterCfg = map[string]map[string]any{
a.Name: settings.Settings["mnd"],
}
}

return newMND(a, &settings.MndSettings, linterCfg)
Expand Down

0 comments on commit 88f60c8

Please sign in to comment.