mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
misspell: add extra-words (#4401)
This commit is contained in:
parent
64492b5e59
commit
e6720b809f
6 changed files with 163 additions and 2 deletions
|
@ -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"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue