-
Notifications
You must be signed in to change notification settings - Fork 83
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
Run a spell checker during CI #853
Comments
@ElPaisano will take a stab on this |
Hello @lemmih 👋 Running into some initial install issues here. Any thoughts? When I run I'm not familiar enough with Rust to understand this issue. Attempted troubleshooting:
System:
|
Whoops, the screenshot quality is pretty poor. Here's the error message: error: failed to run custom build command for Caused by: |
@ElPaisano Looks like you don't have clang installed. For installation trouble, open an issue for cargo-spellcheck. |
@lemmih a thought: the docs team is also working on integrating a linter into our markdown docs called https://github.com/errata-ai/vale. It checks spelling, grammar and writing style. Out of curiosity, I ran vale against a local copy of A few notes:
If you'd like to see an example of Vale as a GH action with a custom config, see ipfs/ipfs-docs#1339 (WIP) Anyways, lmk if you'd be interested in pursuing the use of vale instead of cargo-spellcheck. Other benefits would be that, because the docs team is already using this tool / we are going to be installing it in other doc sets, we are familiar with it and can help you guys with it |
I'm on the fence about checking spelling, but game to try it as experiment. However I'm pretty confident that more general language linting will be a huge distraction from actual productive work. At worst, it will motivate engineers not to write comments. |
@ElPaisano I'm not interested in vale and I'm not entirely sure why you asked. I just reported a bunch of typos; how you want to fix them is up to you. |
@lemmih from the PR title Run a spell checker during CI and your initial comment #853 (comment), was under the impression that y'all were looking for help adding in an automated spell checker, which is what vale and cargo-spellcheck do. Please clarify if you are looking for typo fixes. We don't fix typos in the code base at the moment, that's something you and your engineers will need to do. |
@anorth as a bare minimum experiment, you and the team could use vale locally with a really simple spell check config and without any of the other grammar / writing style stuff prior to committing a change to the code base. No need to add it as another GH action. So, the workflow would be:
So, spelling errors would be fixed prior to commit and push. LMK if you want to try this. |
There are a lot of typos in the actor code:
cirulating
,acculumated
,dosen't
, etc. It would make the code look more professional if such typos were caught automatically. cargo-spellcheck can run a spell-checker on all doc comments.The text was updated successfully, but these errors were encountered: