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):
0$ ./test/lint/lint-spelling.sh
1contrib/gitian-keys/keys.txt:16: Atack ==> Attack
2doc/developer-notes.md:1284: inout ==> input, in out
3doc/psbt.md:122: Asend ==> Ascend, as end
4src/bench/verify_script.cpp:27: Keypair ==> Key pair
5src/blockencodings.h:30: Unser ==> Under, unset, unsure, user
6src/compressor.h:65: Unser ==> Under, unset, unsure, user
7src/core_read.cpp:131: presense ==> presence
8src/index/disktxpos.h:21: blockIn ==> blocking
9src/net_processing.h:67: anounce ==> announce
10src/netaddress.h:486: compatiblity ==> compatibility
11src/primitives/transaction.h:35: nIn ==> inn, min, bin, nine
12src/qt/bitcoinunits.cpp:101: nIn ==> inn, min, bin, nine
13src/rpc/blockchain.cpp:2150: nIn ==> inn, min, bin, nine
14src/rpc/misc.cpp:198: nIn ==> inn, min, bin, nine
15src/script/bitcoinconsensus.cpp:81: nIn ==> inn, min, bin, nine
16src/script/bitcoinconsensus.h:63: nIn ==> inn, min, bin, nine
17src/script/interpreter.cpp:1279: nIn ==> inn, min, bin, nine
18src/script/interpreter.h:222: nIn ==> inn, min, bin, nine
19src/script/sign.cpp:17: nIn ==> inn, min, bin, nine
20src/script/sign.h:39: nIn ==> inn, min, bin, nine
21src/serialize.h:181: Unser ==> Under, unset, unsure, user
22src/signet.cpp:142: nIn ==> inn, min, bin, nine
23src/test/base32_tests.cpp:17: fo ==> of, for
24src/test/base64_tests.cpp:17: fo ==> of, for
25src/test/script_tests.cpp:1509: nIn ==> inn, min, bin, nine
26src/test/sighash_tests.cpp:27: nIn ==> inn, min, bin, nine
27src/test/validation_tests.cpp:78: excercise ==> exercise
28src/undo.h:36: Unser ==> Under, unset, unsure, user
29src/validation.cpp:1403: nIn ==> inn, min, bin, nine
30src/validation.h:255: nIn ==> inn, min, bin, nine
31src/wallet/wallet.cpp:1532: nIn ==> inn, min, bin, nine
32src/wallet/walletdb.cpp:429: Crypted ==> Encrypted
33test/functional/feature_nulldummy.py:63: unnecssary ==> unnecessary
34test/functional/wallet_encryption.py:81: crypted ==> encrypted
35test/functional/wallet_upgradewallet.py:36: fpr ==> for, far, fps
36^ 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
Running spelling linter on PR branch:
0$ ./test/lint/lint-spelling.sh
1src/core_read.cpp:131: presense ==> presence
2src/net_processing.h:67: anounce ==> announce
3src/netaddress.h:486: compatiblity ==> compatibility
4src/test/validation_tests.cpp:78: excercise ==> exercise
5src/wallet/walletdb.cpp:429: Crypted ==> Encrypted
6test/functional/feature_nulldummy.py:63: unnecssary ==> unnecessary
7test/functional/wallet_encryption.py:81: crypted ==> encrypted
8^ 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. Happy new year! 🍾