fix: gomnd deprecated configuration compatibility (#4768)

This commit is contained in:
Ludovic Fernandez 2024-05-28 20:36:00 +02:00 committed by GitHub
parent aea73fb99e
commit 88f60c8c5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)