File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -609,7 +609,8 @@ type MalignedSettings struct {
609
609
}
610
610
611
611
type MisspellSettings struct {
612
- Locale string
612
+ Locale string
613
+ // TODO(ldez): v2 the options must be renamed to `IgnoredRules`.
613
614
IgnoreWords []string `mapstructure:"ignore-words"`
614
615
}
615
616
Original file line number Diff line number Diff line change @@ -95,11 +95,11 @@ func createMisspellReplacer(settings *config.MisspellSettings) (*misspell.Replac
95
95
}
96
96
97
97
if len (settings .IgnoreWords ) != 0 {
98
- var ignoreWords []string
98
+ var ignoredRules []string
99
99
for _ , word := range settings .IgnoreWords {
100
- ignoreWords = append (ignoreWords , strings .ToLower (word ))
100
+ ignoredRules = append (ignoredRules , strings .ToLower (word ))
101
101
}
102
- replacer .RemoveRule (ignoreWords )
102
+ replacer .RemoveRule (ignoredRules )
103
103
}
104
104
105
105
// It can panic.
You can’t perform that action at this time.
0 commit comments