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

Add Spell Checker to CI #668

Merged
merged 15 commits into from
Apr 4, 2024
Merged

Conversation

h4shk4t
Copy link
Contributor

@h4shk4t h4shk4t commented Feb 1, 2024

Which problem is this PR solving?

Description of the changes

  • Simply added a new cspell job to the existing ci-test workflow.
  • Will perform the spell check in the content directory and its subdirectories.
  • Added the same set of dictionary as suggested in the reference PR in the issue thread. (Let me know if any more words need to be added)

Copy link

netlify bot commented Feb 1, 2024

Deploy Preview for romantic-neumann-1959d7 ready!

Name Link
🔨 Latest commit 64e4bd4
🔍 Latest deploy log https://app.netlify.com/sites/romantic-neumann-1959d7/deploys/660f1d001d0b7d0008674460
😎 Deploy Preview https://deploy-preview-668--romantic-neumann-1959d7.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Signed-off-by: Ashutosh Srivastava <ashutosh3002@gmail.com>
Signed-off-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't look like it did anything in the CI run

.project-words.txt Outdated Show resolved Hide resolved
Add spellchecker script

Signed-off-by: Ashutosh Srivastava <ashutosh3002@gmail.com>

Remove from test action

Signed-off-by: Ashutosh Srivastava <ashutosh3002@gmail.com>

Add dictionary

Signed-off-by: Ashutosh Srivastava <ashutosh3002@gmail.com>

Cleanup

Signed-off-by: Ashutosh Srivastava <ashutosh3002@gmail.com>
Signed-off-by: Ashutosh Srivastava <ashutosh3002@gmail.com>
my_dictionary.txt Outdated Show resolved Hide resolved
my_dictionary.txt Outdated Show resolved Hide resolved
@yurishkuro
Copy link
Member

The spellchecker flags normal words, so I don't see it as a viable solution at this point. Maybe it needs better dictionaries. Also, I would argue it should not be checking test formatted as code, because that will always bring a lot of noise.

@h4shk4t
Copy link
Contributor Author

h4shk4t commented Mar 15, 2024

@yurishkuro I did some digging and found the latest dictionary by aspell from 2020 in one of their mirrors. It shows some improvement where it is not flagging words like mentorship, analytics and more (verified this manually). However there are still a lot more common words which are still being flagged like roadmap and onboarding. I was trying Hunspell again, but I am facing issues with making it ignore hexadecimal values (will try to look for some bypasses to fix this issue in the meantime). Kindly advise if I should continue with aspell with a custom dictionary which also includes words like roadmap and onboarding, or to try and make Hunspell reduce false positives from code blocks and hexadecimal values.

@yurishkuro
Copy link
Member

@h4shk4t I don't have preference in the tool, I only have preference for the end result - low friction :-)

Signed-off-by: Ashutosh Srivastava <ashutosh3002@gmail.com>
Signed-off-by: Ashutosh Srivastava <ashutosh3002@gmail.com>
@h4shk4t
Copy link
Contributor Author

h4shk4t commented Mar 17, 2024

@yurishkuro Made the changes. Using cspell binary for spellchecking. Gives a promising accuracy and far lesser tolerance for false positives. Kindly let me know if this suffices.

Best Regards

project-words.txt Outdated Show resolved Hide resolved
cspell.json Outdated Show resolved Hide resolved
Signed-off-by: Ashutosh Srivastava <ashutosh3002@gmail.com>
Makefile Show resolved Hide resolved
Signed-off-by: Ashutosh Srivastava <ashutosh3002@gmail.com>
Signed-off-by: Ashutosh Srivastava <ashutosh3002@gmail.com>
Signed-off-by: Ashutosh Srivastava <ashutosh3002@gmail.com>
@yurishkuro
Copy link
Member

The lint step is catching some real misspellings now, plus a few words that need to go to the dictionary

@h4shk4t
Copy link
Contributor Author

h4shk4t commented Mar 21, 2024

The lint step is catching some real misspellings now, plus a few words that need to go to the dictionary

Yes, I will add the new words to the dictionary (must have missed them earlier). What should I do about the misspellings?

Signed-off-by: Ashutosh Srivastava <ashutosh3002@gmail.com>
Signed-off-by: Ashutosh Srivastava <ashutosh3002@gmail.com>
yurishkuro and others added 3 commits April 4, 2024 17:20
Signed-off-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Signed-off-by: Yuri Shkuro <github@ysh.us>
@yurishkuro yurishkuro merged commit 916ed3a into jaegertracing:main Apr 4, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add spell checker to CI
2 participants