-
Notifications
You must be signed in to change notification settings - Fork 59
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
infra/linters: Replace spellcheck with Typos #153
Conversation
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.
Let's give it a shot. It can't be worse than spellcheck. Also add it to the actions repo [1] if it proves useful.
But can you run it locally?
dcdb9df
to
f22c42d
Compare
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.
Add a lint
rule to the Makefile that runs this linter locally.
Ina addition, you'll have to add exceptions for what's causing |
f5b94fe
to
c28f30a
Compare
ad663e0
to
be3e3d8
Compare
be3e3d8
to
de194e3
Compare
Also, the super-linter errors do make sense. Fix them: https://github.com/cs-pub-ro/operating-systems/actions/runs/12534993042/job/34956380764?pr=153 |
360e90a
to
e41b56a
Compare
e41b56a
to
c4994ad
Compare
The |
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.
That one super-linter error is acutally bullshit. You can ignore it inline AFAIK, right?
No, you need to define a The For concrete examples, checkout #150 and remove the What do you suggest, we ignore it globally or tackle it as we go? |
Ok now removing it in #150 makes sense. It seems this check spits false positive errors when encountering the string |
Use typos to find misspelled words since it does not require extensive wordlists and it is easier to configurate. The trade-off is that it will not complain about uncommon typos since it will assume they are technical terms. Overall it should be a lot easier to maintain than spellcheck. Signed-off-by: Alex Apostolescu <[email protected]>
c4994ad
to
5d3f7e3
Compare
Prerequisite Checklist
Description of changes
Spellcheck is difficult to maintain because it complains about every unknown word, including technical terms, acronyms, and names.
Typos is a more relaxed spellchecker, which only complains about common misspellings and lets the user handle new words such as the previous examples. The configuration in
.github/.typos.toml
allows ignoring strings that match regexes, so we have a nice way of handling command outputs.Additionally, our approach does not scale - the actions repo has 64 PRs that add new words. It is cumbersome to ask a contributor to add common technical terms for each contribution.