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

C++ std::stoll reported as spell error #3153

Closed
david-alvarez-rosa opened this issue Oct 16, 2023 · 4 comments
Closed

C++ std::stoll reported as spell error #3153

david-alvarez-rosa opened this issue Oct 16, 2023 · 4 comments
Labels
dictionary Changes to the dictionary question

Comments

@david-alvarez-rosa
Copy link

I'm trying to run codespell in a C++ project, and I'm getting std::stoll (ref.) reported as spelling error.

stoll ==> still
@david-alvarez-rosa
Copy link
Author

I'm using the following .codespellrc` file

[codespell]
builtin = clear,rare,en-GB_to_en-US,names,informal,code
check-filenames =
check-hidden =
skip = */.git,*/build,*/prefix
quiet-level = 2

that I've copy / past from a best practices repo https://github.com/friendlyanon/cmake-init-shared-static/blob/master/.codespellrc

@DimitriPapadopoulos
Copy link
Collaborator

Add this to .codespellrc:

ignore-words-list = stoll

@david-alvarez-rosa
Copy link
Author

Thank you Dimitri!

Also, after changing my config file to

[codespell]
skip = */.git,*/build

it's working fine.

@DimitriPapadopoulos
Copy link
Collaborator

I guess we could move stoll to the code dictionary. It's difficult to strike the right balance.

@DimitriPapadopoulos DimitriPapadopoulos added dictionary Changes to the dictionary question labels Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dictionary Changes to the dictionary question
Projects
None yet
Development

No branches or pull requests

2 participants