misspell: add mode option (#4275)

This commit is contained in:
Ludovic Fernandez 2023-12-22 16:09:23 +01:00 committed by GitHub
parent 95bc7a8546
commit d99c02cde0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 12 deletions

View file

@ -659,8 +659,9 @@ type MalignedSettings struct {
}
type MisspellSettings struct {
Mode string `mapstructure:"mode"`
Locale string
// TODO(ldez): v2 the options must be renamed to `IgnoredRules`.
// TODO(ldez): v2 the option must be renamed to `IgnoredRules`.
IgnoreWords []string `mapstructure:"ignore-words"`
}