misspell: add extra-words (#4401)

This commit is contained in:
Ludovic Fernandez 2024-02-20 12:59:49 +01:00 committed by GitHub
parent 64492b5e59
commit e6720b809f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 163 additions and 2 deletions

View file

@ -663,12 +663,18 @@ type MalignedSettings struct {
}
type MisspellSettings struct {
Mode string `mapstructure:"mode"`
Locale string
Mode string `mapstructure:"mode"`
Locale string `mapstructure:"locale"`
ExtraWords []MisspellExtraWords `mapstructure:"extra-words"`
// TODO(ldez): v2 the option must be renamed to `IgnoredRules`.
IgnoreWords []string `mapstructure:"ignore-words"`
}
type MisspellExtraWords struct {
Typo string `mapstructure:"typo"`
Correction string `mapstructure:"correction"`
}
type MustTagSettings struct {
Functions []struct {
Name string `mapstructure:"name"`