-
Notifications
You must be signed in to change notification settings - Fork 465
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
Request: checking within snake_case by default #2730
Comments
The underscore (
Is there an easy way to get codespell/codespell_lib/_codespell.py Line 31 in ec0a5b9
Unicode regexes with set operations might help, but they are not available in Python yet. From https://docs.python.org/3/library/re.html#regular-expression-syntax:
This what I have found so far, but I haven't been able to apply it to this use case yet: |
A drawback of such a change is that we wouldn't be able to fix some (but not all) of the misspellings that contain an underscore, at least not by default:
Unless of course, you add new misspellings such as |
I've been using the following for camel case, hyphen case and snake case.
It indeed misses the cases where full words should be considered/checked, but sub-word typos seem to be the common case. |
FWIW, searched myself into this issue having seen Disabled CameCased and ACRONYMs checks by default might also be wise but likely need to be configurable. |
Can codespell's default regex(s) support splitting along snake case's underscore and determining misspellings within particles?
Related
--regex
to detect misspellings within snake case, and it lead to this draft PR.The text was updated successfully, but these errors were encountered: