-
Notifications
You must be signed in to change notification settings - Fork 54
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
Upgrade to check-spelling v0.0.22 #241
Upgrade to check-spelling v0.0.22 #241
Conversation
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
To avoid false negatives for typos of these items outside the specific cases Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
61aa656
to
ad31b08
Compare
@@ -1,7 +1,6 @@ | |||
Controlflow |
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'm sorting this file -- check-spelling doesn't care
github | ||
https | ||
ssh | ||
ubuntu | ||
workarounds | ||
Controlflow | ||
controflow |
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.
This appears to be a typo that didn't seem necessary
# binanace | ||
# binance |
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.
Yeah, I had a typo in my files -- the hazard of excluding them by default -- it took a while for me to catch 😊
@@ -138,7 +142,6 @@ MDBs | |||
methoddeclaration | |||
micronaut | |||
Migratetohypersistenceutilshibernate | |||
Migratetohypersistenceutilshibernate6 |
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.
check-spelling will now complain about things like this (expect only wants words, and by default numbers can't be in words -- although with this version you could actually change the definition of a word...)
# s.b. cannot | ||
\b[Cc]an not\b |
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.
This caught an item below
# Non-English | ||
[a-zA-Z]*[ÀÁÂÃÄÅÆČÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæčçèéêëìíîïðñòóôõöøùúûüýÿĀāŁłŃńŅņŒœŚśŠšŜŝŸŽžź][a-zA-Z]{3}[a-zA-ZÀÁÂÃÄÅÆČÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæčçèéêëìíîïðñòóôõöøùúûüýÿĀāŁłŃńŅņŒœŚśŠšŜŝŸŽžź]*|[a-zA-Z]{3,}[ÀÁÂÃÄÅÆČÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæčçèéêëìíîïðñòóôõöøùúûüýÿĀāŁłŃńŅņŒœŚśŠšŜŝŸŽžź]|[ÀÁÂÃÄÅÆČÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæčçèéêëìíîïðñòóôõöøùúûüýÿĀāŁłŃńŅņŒœŚśŠšŜŝŸŽžź][a-zA-Z]{3,} |
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.
check-spelling didn't suggest this, so apparently whichever content used to be present is no longer checked/matched and thus it didn't make sense to carry it. If it reappears, check-spelling will suggest it again.
# Due to misspelling in a recipe | ||
JavaxPeristenceXmlToJakartaPersistenceXml | ||
|
||
# Due to misspelling in a recipe | ||
MigrateHibernateContraintsToJavax | ||
|
||
# brand | ||
\[Spring Initializr\] |
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.
These are to remove a couple of items from expect as noted in the PR description
experimental_apply_changes_via_bot: ${{ github.repository_owner != 'openrewrite' && 1 }} | ||
use_sarif: ${{ (!github.event.pull_request || (github.event.pull_request.head.repo.full_name == github.repository)) && 1 }} | ||
extra_dictionary_limit: 10 | ||
dictionary_source_prefixes: | | ||
{"cspell": "https://raw.githubusercontent.com/check-spelling/cspell-dicts/v20220816/dictionaries/", "cspell1": "https://raw.githubusercontent.com/check-spelling/cspell-dicts/v20230509/dictionaries/"} |
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.
the paths used originally were based on the version here, so there's no longer a need for the 1
prefix.
cspell1:aws/aws.txt | ||
cspell1:npm/dict/npm.txt | ||
cspell1:java/src/java.txt | ||
cspell1:k8s/dict/k8s.txt | ||
cspell1:typescript/dict/typescript.txt | ||
cspell1:filetypes/filetypes.txt | ||
cspell1:fullstack/dict/fullstack.txt | ||
cspell1:python/src/python/python-lib.txt | ||
cspell1:scala/dict/scala.txt | ||
cspell1:php/dict/php.txt | ||
cspell1:node/dict/node.txt |
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.
a bunch of these didn't seem to have enough value to retain ...
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.
Thanks so much for doing all of this! It really helps :D
* spelling: cannot Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * spelling: occurrence Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * Move some entries to patterns To avoid false negatives for typos of these items outside the specific cases Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> * Update check-spelling to v0.0.22 --------- Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
What's changed?
expect
items topatterns
so that normal typos for the words aren't acceptedcheck-spelling is smarter :)
What's your motivation?
Upgrading clients to v0.0.22
Anything in particular you'd like reviewers to focus on?
Anyone you would like to review specifically?
Have you considered any alternatives or workarounds?
Any additional context
Checklist
./gradlew licenseFormat