fix: gomnd deprecated configuration compatibility (#4768)
This commit is contained in:
parent
aea73fb99e
commit
88f60c8c5c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user