initial commit: ifinit and boolnames

This commit is contained in:
2026-10-14 20:33:05 -07:00
commit 190a5bf8b2
20 changed files with 1110 additions and 0 deletions

16
boolnames/settings.go Normal file
View 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)
}