Skip to content

Commit e5cff63

Browse files
committed
fix: gomnd deprecated configuration compatibilty
1 parent 95b8f48 commit e5cff63

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/golinters/mnd/mnd.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ func NewGoMND(settings *config.GoMndSettings) *goanalysis.Linter {
2525

2626
if settings != nil && len(settings.Settings) > 0 {
2727
// Convert deprecated setting.
28-
linterCfg = settings.Settings
28+
linterCfg = map[string]map[string]any{
29+
a.Name: settings.Settings["mnd"],
30+
}
2931
}
3032

3133
return newMND(a, &settings.MndSettings, linterCfg)

0 commit comments

Comments
 (0)