You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I actually tested that very use case yesterday in the context of #3206, and it worked for me:
$ mkdir test
$ cdtest/tmp/test
$
$ cat > aare.txtaare
$ codespell .aare.txt:1: aare ==> are
$
$ cat > aadd.txtaadd
$ codespell ../aadd.txt:1: aadd ==> add./aare.txt:1: aare ==> are
$
$ cat > ignore.txt aareaadd
$ codespell ../aadd.txt:1: aadd ==> add./aare.txt:1: aare ==> are./ignore.txt:1: aare ==> are./ignore.txt:2: aadd ==> add
$
$ codespell --ignore-words ignore.txt .
$
There are two ways to handle such a situation:
Since --ignore-words lists the word to ignore, these words will be ignored, including in the files passed as argument to --ignore-words. No real need to skip these files.
Make sure these files are not even read. That's probably the right thing to do.
I guess codespell uses mechanism 1. The right thing to do would be to switch to mechanism 2, but this would require other PRs such as #2058 to be merged first. So let's stick to mechanism 2 for now. I guess your issue is a case issue similar to #3248. You should be able to take care of it by fixing the case of the words to ignore, or by testing master branch that includes recent PR #3272.
As per title, otherwise
codespell
fixes the ignore file itself which makes no sense anyway.The text was updated successfully, but these errors were encountered: