-
Notifications
You must be signed in to change notification settings - Fork 206
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
Add CSpell #682
Add CSpell #682
Conversation
Note that the json file also includes words which are misspelt -- This is intentional and once they have been removed and corrected, the PR will be ready for review |
da47111
to
324513c
Compare
324513c
to
957bf5c
Compare
- A simple test to check that the CI fails when an unknown word is in the code
To print out all of the unknown words, one can install the cli and run:
|
216e757
to
0da2a43
Compare
A large group of the spelling mistakes fall into two categories:
Then we have domain specific words like acvm, acir and rustc which should indeed be added to the list. |
In the worse case, if we keep adding new words to the codebase one will need to keep updating the list. The upside is that we no longer need to manually check for spellling mistakes from each contributor and the introduction of a new word will immediately be obvious (warranting an explanation) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this PR fix any issues with the codebase? I'm somewhat dubious of the need for a spellchecker. I don't see it solving any issues and it just adds an extra CI step.
We do have quite a lot of spelling mistakes -- if you check the cspell.json file, I have added the words which were misspelled into the json file to indicate them and to have the CI pass. The top ones are spelling mistakes and in other places, it is because we are not using the snake case to correctly separate two words for example. Getting it in the CI is a pain -- we can also opt to make them warnings in the PR instead of errors, though I don't expect us to add a bunch of new unknown words, so I'm up for trying it out and seeing how often it catches new spelling mistakes introduced by a PR |
If it is not too much trouble then, I think this PR should also fix the spelling mistakes it finds rather than committing an ignore file with many mistakes we do not want ignored. If it is too much work, you can pass it off to someone else on the team. |
I agree -- to clarify, this PR is not ready while we are ignoring spelling mistakes. This was just done so that the CI can pass and we are aware of the list of problematic words. I then removed a word from the list to check that the CI failed and now it's a matter of correcting the spelling mistakes present in the code and removing them from the Json file. I will do this and then re-request your review :) |
(This is not great naming either way, but thats for another PR)
Can add comments to code itself
- Only run action on files which have changed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
* master: chore: Add spellchecker (noir-lang#682) Rename methods that use `conditionalize` to be more descriptive (noir-lang#739)
Related issue(s)
Resolves #681
Description
Summary of changes
Dependency additions / changes
Test additions / changes
Checklist
cargo fmt
with default settings.Additional context