boolnames: make default whitelist include 'ok'
This commit is contained in:
16
pkg/boolnames/settings.go
Normal file
16
pkg/boolnames/settings.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package boolnames
|
||||
|
||||
import "github.com/golangci/plugin-module-register/register"
|
||||
|
||||
type Settings struct {
|
||||
Whitelist []string `json:"whitelist"`
|
||||
AllowedPrefixes []string `json:"allowed_prefixes"`
|
||||
}
|
||||
|
||||
func decodeSettings(rawSettings any) (Settings, error) {
|
||||
if rawSettings == nil {
|
||||
return Settings{}, nil
|
||||
}
|
||||
|
||||
return register.DecodeSettings[Settings](rawSettings)
|
||||
}
|
||||
Reference in New Issue
Block a user