-
-
Notifications
You must be signed in to change notification settings - Fork 959
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
Automated spellcheck for docs via GitHub Actions (and address all raised issues) #2144
Automated spellcheck for docs via GitHub Actions (and address all raised issues) #2144
Conversation
Started with 943 raised issues. Down to 719. |
many names and many link to issues that will be copy/paste and could contain spelling errors
Since term is only in front-matte
branches: | ||
- main | ||
paths: | ||
- "docs/**/*" |
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.
ℹ️ NOTE: Will only run when docs
or child items are modified in some way.
"language": "en", | ||
"words": [ | ||
"Alloc", | ||
"analyse", |
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.
ℹ️ Typically I standardize on en-US
because that's the cSpell default. In this case, it seems analyse
is pretty "baked in" to the docs so I chose to add it instead. Let me know if you'd like me to adjust to analyze
and I will.
{ | ||
"version": "0.2", | ||
"language": "en", | ||
"words": [ |
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.
ℹ️ NOTE: words
in this file will be suggested alongside spellcheck in IDEs that make use of cSpell (e.g. VS Code). ignoreWords
will not. I make a best-guess effort to separate the two.
@@ -1,4 +1,5 @@ | |||
--- | |||
#cspell:ignore configoptions |
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.
ℹ️ In some files where the only issue surfaced was in frontmatter, I used the #cspell:ignore
technique to ignore it.
| GlobFilter | Provided glob pattern | `filter` | --filter *Serializer*.ToStream | | ||
| AttributesFilter | Provided attribute names | `attribute` | --attribute STAThread | | ||
| AllCategoriesFilter | All Provided category names | `categories` | --allCategories Priority1 CoreFX | | ||
| AnyCategoriesFilter | Any provided category names | `anycategories` | --anyCategories Json Xml | |
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.
ℹ️ In cases like this, where one of the items (e.g. anycategories
) is considered a spelling issue, if possible I resolve it by putting back-ticks around the list of options.
@@ -118,18 +123,24 @@ Basically, it's a good idea to start with predefined values (e.g. `EnvMode.RyuJi | |||
|
|||
Note that the job cannot be modified after it's added into config. Trying to set a value on property of the frozen job will throw an `InvalidOperationException`. Use the `Job.Frozen` property to determine if the code properties can be altered. | |||
|
|||
If you do want to create a new job based on frozen one (all predefined job values are frozen) you can use the `.With()` extension method | |||
If you do want to create a new job based on frozen one (all predefined job values are frozen) you can use the `.With()` extension method | |||
|
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.
ℹ️ In a few cases, my auto-formatter introduced some whitespace that I didn't think you'd hate, so I just left it in instead of undoing it.
OK -- self-review added as a guide to the changes. Please let me know if you've got any questions / concerns! |
"Multi-line code blocks", | ||
"HTML Tags" | ||
], | ||
"ignorePaths": [ |
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.
ℹ️ I ignore two globs as part of this PR:
- Changelog -- it usually contains many names, and spelling issues could arise as the result of direct copy/paste. More messy to leave in than to take out typically I find, so I ignore it. If you'd like me to un-ignore it and work through it, I can do that.
- Team page -- mostly due to the names. However, as above, happy to un-ignore and work through it if that's your preference.
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.
Looks good to me, thank you for your contribution @SeanKilleen !
@AndreyAkinshin PTAL
on: | ||
push: | ||
branches: | ||
- master |
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.
ℹ️ FYI I had his as main
originally by mistake. Just fixed it.
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.
Currently, the spellcheck workflow fails with
/home/runner/work/BenchmarkDotNet/BenchmarkDotNet/docs/articles/guides/choosing-run-strategy.md:2:11 - Unknown word (runstrategy)
/home/runner/work/BenchmarkDotNet/BenchmarkDotNet/docs/articles/samples/IntroColdStart.md:38:9 - Unknown word (runstrategy)
/home/runner/work/BenchmarkDotNet/BenchmarkDotNet/docs/articles/samples/IntroMonitoring.md:47:9 - Unknown word (runstrategy)
CSpell: Files checked: 105, Issues found: 3 in 3 files
Could you please make it green?
@AndreyAkinshin sorry I missed that. Just pushed the changes to fix it. 👍 |
@SeanKilleen thanks! |
Hi all,
Wanted to do a PR that I hope will be useful and quick. I've been theming my contributions lately and am aiming to contribute this as I've contributed it to NUnit, Marten, Akka .NET, Uno Platform, HotChocolate, Prisma,, etc.
This PR:
If this isn't something you're interested in, that's quite alright -- just let me know and close the PR.
ℹ️ I'll do a self-review prior to this being complete where I'll point out any quirks / ask for choices where such choices exist, etc.