golangci / misspell

Correct commonly misspelled English words in source files
MIT License
22 stars 10 forks source link

`-i` not ignoring rules #8

Closed luizkowalski closed 7 months ago

luizkowalski commented 10 months ago

Hey! First of all, thanks for maintaining this fork!

I'm trying to ignore a couple of rules, but apparently, the -i flag is being ignore:

❯ ~/bin/misspell **/*.{rb,txt} -i "TEH"
...
not_cleared_spec.rb:235:41: "TEH" is a misspelling of "THE"

I tried different things like this:

❯ ~/bin/misspell **/*.{rb,txt} -i "TEH,teh,THE,the"

I still keep seeing the TEH rule

I'm using v0.4.1 on MacOS (M2)

ldez commented 7 months ago

Hello,

the flags should be placed before the path:

$ misspell foo.txt -i "teh"
foo.txt:1:0: "Teh" is a misspelling of "The"
$
$ misspell  -i "teh" foo.txt
$