-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
ci: add typos as spell checker #641
Conversation
β Deploy Preview for livecodes ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Quality Gate passedIssues Measures |
Thanks @zyf722 That is nice. Is there an easy way to run the test locally? e.g. npm package. This can allow us to reproduce problems locally without having to keep pushing to GitHub to see results. How about cspell? Also has a vscode extension which seems to be very popular. I'm actually using it. |
You might also be interested in their pre-commit hook.
It's new to me. I will check it out and see if it fits our needs better :)
Indeed, actually I guess we might be faced with false positives in some cases. Perhaps it would be better to only throw warning annotations when typos are detected, rather than error annotations and terminate the workflow? |
Actually, cspell does have some false positives in my experience with it.
I agree. |
@zyf722 It is currently failing for other translations. |
Thank you for reviewing the PR.
I'd love to! As long as you consider it is worth doing so, I'm always ready to help.
Already fixed. We previously haven't tracked |
Thank you @zyf722
Currently, the setup would lead to failure of the build workflow and prevent us from merging if typos were detected. (cannot ignore false positives) What do you think? |
Quality Gate passedIssues Measures |
Indeed, it's a good idea to add a new workflow for this. I've moved the spell checking step to a separate file |
Thank you @zyf722 |
What type of PR is this? (check all applicable)
Description
This PR adds crate-io/typos as spell checker in CI process.
Spell errors will cause the CI to fail, with errors reported in the Annotations part of GitHub Actions workflow runs (link to this run):
Its behavior can be controlled with the
typos.toml
file, with config specifications detailed here.Added tests?
Added to documentations?