Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Glob matching for skip does not work as expected (excluding one file pattern from skipping) #3539

Open
darkmattercoder opened this issue Sep 10, 2024 · 0 comments

Comments

@darkmattercoder
Copy link

darkmattercoder commented Sep 10, 2024

I have a .codespellrc where I want to skip a special directory (call it A1_X), except for one file. The manpage says that the skip entries support globs. So I went to a glob validator to double check that my glob pattern should match that file. However, codespell does not seem to understand the syntax and checks all files in the directory.

I used skip = ./somedir,./dir/A1_X/**/@(!(SomeCode.c)),./someotherdir in my config file.

For reference here is the direct link to the validator including the values I used:

https://www.digitalocean.com/community/tools/glob?comments=false&glob=.%2Fdir%2FA1_X%2F%2A%2A%2F%40%28%21%28SomeCode.c%29%29&matches=false&options=dot%3Atrue&tests=.%2Fdir%2FA1_X%2F.hiddenfile&tests=.%2Fdir%2FA1_X%2Fsrc%2FSomeCode.c&tests=.%2Fdir%2FA1_X%2Fhampelmann&tests=.%2Fdir%2FA1_X%2Fsrc%2Fsubdir%2Fsubsubdir%2FSomeCode.c&tests=.%2Fdir%2FA1_X%2Fsrc%2Fsubdir%2Fsubsubdir%2F

How can I get codespell to understand my configuration?

Codespell used is from commit 2569d89

@darkmattercoder darkmattercoder changed the title Glob Matching for skip does not work as expected (excluding one file pattern from skipping) Glob matching for skip does not work as expected (excluding one file pattern from skipping) Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant