File tree 3 files changed +8
-1
lines changed
3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,11 @@ func createMisspellReplacer(settings *config.MisspellSettings) (*misspell.Replac
95
95
}
96
96
97
97
if len (settings .IgnoreWords ) != 0 {
98
- replacer .RemoveRule (settings .IgnoreWords )
98
+ var ignoreWords []string
99
+ for _ , word := range settings .IgnoreWords {
100
+ ignoreWords = append (ignoreWords , strings .ToLower (word ))
101
+ }
102
+ replacer .RemoveRule (ignoreWords )
99
103
}
100
104
101
105
// It can panic.
Original file line number Diff line number Diff line change 1
1
linters-settings :
2
2
misspell :
3
+ locale : US
3
4
ignore-words :
4
5
- langauge
6
+ - Dialogue
Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ func Misspell() {
7
7
}
8
8
9
9
// the word langauge should be ignored here: it's set in config
10
+ // the word Dialogue should be ignored here: it's set in config
You can’t perform that action at this time.
0 commit comments