Skip to content

Commit adf27b5

Browse files
author
MarcoFalke
committed
Merge #13954: Warn (don't fail!) on spelling errors. Fix typos reported by codespell.
f8a81f7 lint: Add spell check linter (codespell) (practicalswift) ada3562 Fix typos reported by codespell (practicalswift) Pull request description: * Check for common misspellings using `codespell`. * Fix recently introduced typos reported by `codespell`. Tree-SHA512: 9974c0e640b411c7d0ebc5b45de253c19bac7fe3002cd98601ff8da8db584224c2fd7d331aee3df612c9f2cfef540d647a9b4c5a1a73fd208dc93ce4bf9e5e3e
2 parents 95d731d + f8a81f7 commit adf27b5

21 files changed

+47
-25
lines changed

.travis/lint_04_install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66

77
export LC_ALL=C
88

9+
travis_retry pip install codespell
910
travis_retry pip install flake8

contrib/debian/copyright

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Comment: Site: https://bitcointalk.org/?topic=1756.0
9696
Files: src/qt/res/icons/proxy.png
9797
src/qt/res/src/proxy.svg
9898
Copyright: Cristian Mircea Messel
99-
Licese: public-domain
99+
License: public-domain
100100

101101

102102
License: Expat

contrib/gitian-build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def main():
170170

171171
args.sign_prog = 'true' if args.detach_sign else 'gpg --detach-sign'
172172

173-
# Set enviroment variable USE_LXC or USE_DOCKER, let gitian-builder know that we use lxc or docker
173+
# Set environment variable USE_LXC or USE_DOCKER, let gitian-builder know that we use lxc or docker
174174
if args.docker:
175175
os.environ['USE_DOCKER'] = '1'
176176
elif not args.kvm:

src/dbwrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static void SetMaxOpenFiles(leveldb::Options *options) {
7878
// do not interfere with select() loops. On 64-bit Unix hosts this value is
7979
// also OK, because up to that amount LevelDB will use an mmap
8080
// implementation that does not use extra file descriptors (the fds are
81-
// closed after being mmaped).
81+
// closed after being mmap'ed).
8282
//
8383
// Increasing the value beyond the default is dangerous because LevelDB will
8484
// fall back to a non-mmap implementation when the file count is too large.

src/qt/test/util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Press "Ok" button in message box dialog.
66
*
77
* @param text - Optionally store dialog text.
8-
* @param msec - Number of miliseconds to pause before triggering the callback.
8+
* @param msec - Number of milliseconds to pause before triggering the callback.
99
*/
1010
void ConfirmMessage(QString* text = nullptr, int msec = 0);
1111

src/rpc/rawtransaction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1740,7 +1740,7 @@ UniValue converttopsbt(const JSONRPCRequest& request)
17401740
" will continue. If false, RPC will fail if any signatures are present.\n"
17411741
"3. iswitness (boolean, optional) Whether the transaction hex is a serialized witness transaction.\n"
17421742
" If iswitness is not present, heuristic tests will be used in decoding. If true, only witness deserializaion\n"
1743-
" will be tried. If false, only non-witness deserialization wil be tried. Only has an effect if\n"
1743+
" will be tried. If false, only non-witness deserialization will be tried. Only has an effect if\n"
17441744
" permitsigdata is true.\n"
17451745
"\nResult:\n"
17461746
" \"psbt\" (string) The resulting raw transaction (base64-encoded string)\n"

src/scheduler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class SingleThreadedSchedulerClient {
111111
/**
112112
* Add a callback to be executed. Callbacks are executed serially
113113
* and memory is release-acquire consistent between callback executions.
114-
* Practially, this means that callbacks can behave as if they are executed
114+
* Practically, this means that callbacks can behave as if they are executed
115115
* in order by a single thread.
116116
*/
117117
void AddToProcessQueue(std::function<void (void)> func);

src/script/descriptor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ enum class ParseScriptContext {
373373
P2WSH,
374374
};
375375

376-
/** Parse a constant. If succesful, sp is updated to skip the constant and return true. */
376+
/** Parse a constant. If successful, sp is updated to skip the constant and return true. */
377377
bool Const(const std::string& str, Span<const char>& sp)
378378
{
379379
if ((size_t)sp.size() >= str.size() && std::equal(str.begin(), str.end(), sp.begin())) {
@@ -383,7 +383,7 @@ bool Const(const std::string& str, Span<const char>& sp)
383383
return false;
384384
}
385385

386-
/** Parse a function call. If succesful, sp is updated to be the function's argument(s). */
386+
/** Parse a function call. If successful, sp is updated to be the function's argument(s). */
387387
bool Func(const std::string& str, Span<const char>& sp)
388388
{
389389
if ((size_t)sp.size() >= str.size() + 2 && sp[str.size()] == '(' && sp[sp.size() - 1] == ')' && std::equal(str.begin(), str.end(), sp.begin())) {

src/streams.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ class BitStreamReader
529529
explicit BitStreamReader(IStream& istream) : m_istream(istream) {}
530530

531531
/** Read the specified number of bits from the stream. The data is returned
532-
* in the nbits least signficant bits of a 64-bit uint.
532+
* in the nbits least significant bits of a 64-bit uint.
533533
*/
534534
uint64_t Read(int nbits) {
535535
if (nbits < 0 || nbits > 64) {

src/support/lockedpool.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void* Arena::alloc(size_t size)
7575

7676
// Create the used-chunk, taking its space from the end of the free-chunk
7777
const size_t size_remaining = size_ptr_it->first - size;
78-
auto alloced = chunks_used.emplace(size_ptr_it->second + size_remaining, size).first;
78+
auto allocated = chunks_used.emplace(size_ptr_it->second + size_remaining, size).first;
7979
chunks_free_end.erase(size_ptr_it->second + size_ptr_it->first);
8080
if (size_ptr_it->first == size) {
8181
// whole chunk is used up
@@ -88,7 +88,7 @@ void* Arena::alloc(size_t size)
8888
}
8989
size_to_free_chunk.erase(size_ptr_it);
9090

91-
return reinterpret_cast<void*>(alloced->first);
91+
return reinterpret_cast<void*>(allocated->first);
9292
}
9393

9494
void Arena::free(void *ptr)

0 commit comments

Comments
 (0)