-
Notifications
You must be signed in to change notification settings - Fork 38.6k
lint: update list of spelling linter false positives, bump to codespell 2.0.0 #20817
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
lint: update list of spelling linter false positives, bump to codespell 2.0.0 #20817
Conversation
jonatack
left a comment
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.
ACK 8b4e84dbcd2a08e8a6e658d7aa684705b4f0d974
$ test/lint/lint-spelling.sh
src/core_read.cpp:131: presense ==> presence
src/net_processing.h:67: anounce ==> announce
src/netaddress.h:486: compatiblity ==> compatibility
src/test/validation_tests.cpp:78: excercise ==> exercise
src/wallet/walletdb.cpp:429: Crypted ==> Encrypted
test/functional/feature_nulldummy.py:63: unnecssary ==> unnecessary
test/functional/wallet_encryption.py:81: crypted ==> encrypted
Well done, thanks.
|
ACK 8b4e84dbcd2a08e8a6e658d7aa684705b4f0d974
Happy new year @theStack! |
hebasto
left a comment
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.
Concept ACK.
|
Added a commit to ignore the gitian keys file for linting, as suggested by hebasto, and updated the PR description accordingly. |
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.
Tested a63b712cad90f57cc9c7a8f0436c1e4ec7e77dc7:
$ codespell --version
1.17.1
$ test/lint/lint-spelling.sh
ci/lint/06_script.sh:29: keyserver ==> key server
contrib/macdeploy/gen-sdk:60: files' ==> file's
contrib/seeds/makeseeds.py:108: dedup ==> dedupe
contrib/seeds/makeseeds.py:189: dedup ==> dedupe
contrib/verify-commits/README.md:43: keyserver ==> key server
src/Makefile.am:278: OBJEXT ==> OBJECT
src/core_read.cpp:131: presense ==> presence
src/cuckoocache.h:152: copyable ==> copiable
src/net_processing.h:67: anounce ==> announce
src/netaddress.h:486: compatiblity ==> compatibility
src/support/lockedpool.h:55: copyable ==> copiable
src/support/lockedpool.h:166: copyable ==> copiable
src/test/validation_tests.cpp:78: excercise ==> exercise
src/wallet/walletdb.cpp:429: Crypted ==> Encrypted
src/zmq/zmqpublishnotifier.cpp:231: Dedup ==> Dedupe
test/functional/feature_nulldummy.py:63: unnecssary ==> unnecessary
test/functional/wallet_encryption.py:81: crypted ==> encrypted
^ Warning: codespell identified likely spelling errors. Any false positives? Add them to the list of ignored words in test/lint/lint-spelling.ignore-words.txt
This list of remaining findings doesn't contain false positives anymore -- the typos are fixed in PR #20762.
Not sure about that statement.
From the Cirrus linter job log:
ci/lint/06_script.sh:29: keyserver ==> key server
contrib/macdeploy/gen-sdk:60: files' ==> file's
contrib/seeds/makeseeds.py:108: dedup ==> dedupe
contrib/seeds/makeseeds.py:189: dedup ==> dedupe
contrib/verify-commits/README.md:43: keyserver ==> key server
src/Makefile.am:278: OBJEXT ==> OBJECT
src/core_read.cpp:131: presense ==> presence
src/cuckoocache.h:152: copyable ==> copiable
src/net_processing.h:67: anounce ==> announce
src/netaddress.h:486: compatiblity ==> compatibility
src/support/lockedpool.h:55: copyable ==> copiable
src/support/lockedpool.h:166: copyable ==> copiable
src/test/validation_tests.cpp:78: excercise ==> exercise
src/wallet/walletdb.cpp:429: Crypted ==> Encrypted
src/zmq/zmqpublishnotifier.cpp:231: Dedup ==> Dedupe
test/functional/feature_nulldummy.py:63: unnecssary ==> unnecessary
test/functional/wallet_encryption.py:81: crypted ==> encrypted
^ Warning: codespell identified likely spelling errors. Any false positives? Add them to the list of ignored words in test/lint/lint-spelling.ignore-words.txt
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsNo conflicts as of last run. |
|
@hebasto: Thanks for testing! I wasn't aware that I used already codespell 2.0.0 (recently released in 23 Nov 2020), which is obviously more aware of various terms like e.g. |
I think the former is fine. The only concern is about codespell-project/codespell#1774. |
a63b712 to
b86ddfe
Compare
b86ddfe to
852cd43
Compare
hebasto
left a comment
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.
ACK 852cd43b3e22d84aa44ec6aa42b24dd3cf5c6c01, tested on Linux Mint 20 (x86_64).
Co-authored-by: Hennadii Stepanov <[email protected]>
852cd43 to
f3ba916
Compare
|
Force-pushed, addressed @hebasto's suggestions of keeping the ignore-list in order (#20817 (comment)) and removing the "keypair" exception (#20817 (comment)). |
hebasto
left a comment
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.
jonatack
left a comment
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.
ACK f3ba916 I don't know if there are any particular issues with bumping codespell to v2.0.0, but locally running the spelling linter and the cirrus job at https://cirrus-ci.com/task/5004066998714368 both LGTM. Thanks for also verifying and removing the unused words from the ignore list.
This small patch updates the ignore list for the spelling linter script (which uses
codespell), both removing false-positives that are not relevant anymore and adding new ones. As suggested by jonatack, whose last name is now also part of the list :). Also changed the linter script to not check the gitian keys file, as suggested by hebasto. The codespell version used is bumped to most recent version 2.0.0, which is more aware of some terms that were previously needed in the ignorelist for v1.17.1, see #20817 (comment).Running spelling linter on master branch (repeated findings in the same file are removed to keep the output short):
Running spelling linter on PR branch:
This list of remaining findings doesn't contain false positives anymore -- the typos are fixed in PR #20762.
Happy new year! 🍾