diff --git a/.github/spellcheck-settings.yml b/.github/spellcheck-settings.yml deleted file mode 100644 index b8ca6cca6..000000000 --- a/.github/spellcheck-settings.yml +++ /dev/null @@ -1,29 +0,0 @@ -matrix: -- name: Markdown - expect_match: false - apsell: - lang: en - d: en_US - ignore-case: true - dictionary: - wordlists: - - .github/wordlist.txt - output: wordlist.dic - pipeline: - - pyspelling.filters.markdown: - markdown_extensions: - - markdown.extensions.extra: - - pyspelling.filters.html: - comments: false - attributes: - - alt - ignores: - - ':matches(code, pre)' - - code - - pre - - blockquote - - img - sources: - - 'README.md' - - 'FAQ.md' - - 'docs/**' diff --git a/.github/wordlist.txt b/.github/wordlist.txt deleted file mode 100644 index 244bf5b80..000000000 --- a/.github/wordlist.txt +++ /dev/null @@ -1,99 +0,0 @@ -ABI -ACLs -alloc -Allocator -allocators -antirez -api -APIs -ASYNC -asyncRedisContext -asyncronous -AUTOFREE -autoload -autoloader -autoloading -Autoloading -backend -backends -behaviour -boolean -CAS -Changelog -customizable -Customizable -CVE -dataset -de -deallocation -ElastiCache -extensibility -FPM -getaddrinfo -gmail -grunder -Grunder -hiredis -Hiredis -HIREDIS -hostname -IANA -IPv -IPV -keepalive -keyspace -keyspaces -KiB -libc -libev -libevent -localhost -Lua -michael -minimalistic -namespace -NOAUTOFREE -NOAUTOFREEREPLIES -NONBLOCK -Noordhuis -OpenSSL -Packagist -pcnoordhuis -PhpRedis -Pieter -pipelined -pipelining -pluggable -Predis -PRERELEASE -printf -PSR -PSUBSCRIBE -rb -Readme -README -rebalanced -rebalancing -redis -Redis -redisAsyncContext -redisContext -redisOptions -redisReader -reusability -REUSEADDR -runtime -Sanfilippo -SHA -sharding -SONAME -SSL -struct -stunnel -subelements -TCP -TLS -unparsed -UNSPEC -URI -variadic diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index e15284155..c7bb576e2 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -7,8 +7,5 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - - name: Check Spelling - uses: rojopolis/spellcheck-github-actions@0.33.1 - with: - config_path: .github/spellcheck-settings.yml - task_name: Markdown + - name: Search for misspellings + uses: crate-ci/typos@master diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 000000000..87332c62a --- /dev/null +++ b/.typos.toml @@ -0,0 +1,14 @@ +[files] +extend-exclude = [ + ".git/" +] +ignore-hidden = false + +[default] +extend-ignore-re = [ + '"fo\\0"', + "/bin/sh -ue", +] + +[default.extend-words] +"clen" = "clen" diff --git a/CHANGELOG.md b/CHANGELOG.md index 801c40729..594676182 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -110,7 +110,7 @@ Announcing Hiredis v1.1.0-rc1, with better SSL convenience, new async adapters, - Maintain backward compatibility with our onConnect callback. [@michael-grunder](https://github.com/michael-grunder) ([\#1087](https://github.com/redis/hiredis/pull/1087)) - Fix PUSH handler tests for Redis >= 7.0.5 [@michael-grunder](https://github.com/michael-grunder) ([\#1121](https://github.com/redis/hiredis/pull/1121)) - fix heap-buffer-overflow [@zhangtaoXT5](https://github.com/zhangtaoXT5) ([\#957](https://github.com/redis/hiredis/pull/957)) -- Fix heap-buffer-overflow issue in redisvFormatCommad [@bjosv](https://github.com/bjosv) ([\#1097](https://github.com/redis/hiredis/pull/1097)) +- Fix heap-buffer-overflow issue in redisvFormatCommand [@bjosv](https://github.com/bjosv) ([\#1097](https://github.com/redis/hiredis/pull/1097)) - Polling adapter requires sockcompat.h [@michael-grunder](https://github.com/michael-grunder) ([\#1095](https://github.com/redis/hiredis/pull/1095)) - Illumos test fixes, error message difference for bad hostname test. [@devnexen](https://github.com/devnexen) ([\#901](https://github.com/redis/hiredis/pull/901)) - Remove semicolon after do-while in \_EL\_CLEANUP [@sundb](https://github.com/sundb) ([\#905](https://github.com/redis/hiredis/pull/905)) @@ -311,7 +311,7 @@ _A big thanks to everyone who helped with this release. The following list incl - error when make USE\_SSL=1 [\#748](https://github.com/redis/hiredis/issues/748) - Allow to change SSL Mode [\#646](https://github.com/redis/hiredis/issues/646) - hiredis/adapters/libevent.h memleak [\#618](https://github.com/redis/hiredis/issues/618) -- redisLibuvPoll crash when server closes the connetion [\#545](https://github.com/redis/hiredis/issues/545) +- redisLibuvPoll crash when server closes the connection [\#545](https://github.com/redis/hiredis/issues/545) - about redisAsyncDisconnect question [\#518](https://github.com/redis/hiredis/issues/518) - hiredis adapters libuv error for help [\#508](https://github.com/redis/hiredis/issues/508) - API/ABI changes analysis [\#506](https://github.com/redis/hiredis/issues/506) @@ -342,7 +342,7 @@ _A big thanks to everyone who helped with this release. The following list incl - Allow users to replace allocator and handle OOM everywhere. [\#800](https://github.com/redis/hiredis/pull/800) ([michael-grunder](https://github.com/michael-grunder)) - Remove nested depth limitation. [\#797](https://github.com/redis/hiredis/pull/797) ([michael-grunder](https://github.com/michael-grunder)) - Attempt to fix compilation on Solaris [\#796](https://github.com/redis/hiredis/pull/796) ([michael-grunder](https://github.com/michael-grunder)) -- Support timeouts in libev adapater [\#795](https://github.com/redis/hiredis/pull/795) ([michael-grunder](https://github.com/michael-grunder)) +- Support timeouts in libev adapter [\#795](https://github.com/redis/hiredis/pull/795) ([michael-grunder](https://github.com/michael-grunder)) - Fix pkgconfig when installing to a custom lib dir [\#793](https://github.com/redis/hiredis/pull/793) ([michael-grunder](https://github.com/michael-grunder)) - Fix USE\_SSL=1 make/cmake on OSX and CMake tests [\#789](https://github.com/redis/hiredis/pull/789) ([michael-grunder](https://github.com/michael-grunder)) - Use correct libuv call on Windows [\#784](https://github.com/redis/hiredis/pull/784) ([michael-grunder](https://github.com/michael-grunder)) diff --git a/README.md b/README.md index f70464102..7090455ea 100644 --- a/README.md +++ b/README.md @@ -158,7 +158,7 @@ The values are not stored in the `redisContext`, so they are not automatically a These functions return `REDIS_OK` on success. On failure, `REDIS_ERR` is returned and the underlying connection is closed. -To configure these for an asyncronous context (see *Asynchronous API* below), use `ac->c` to get the redisContext out of an asyncRedisContext. +To configure these for an asynchronous context (see *Asynchronous API* below), use `ac->c` to get the redisContext out of an asyncRedisContext. ```C int redisEnableKeepAlive(redisContext *c); diff --git a/read.c b/read.c index 9c8f86906..6a541e583 100644 --- a/read.c +++ b/read.c @@ -310,7 +310,7 @@ static int processLineItem(redisReader *r) { d = strtod((char*)buf,&eptr); /* RESP3 only allows "inf", "-inf", and finite values, while * strtod() allows other variations on infinity, - * etc. We explicity handle our two allowed infinite cases and NaN + * etc. We explicitly handle our two allowed infinite cases and NaN * above, so strtod() should only result in finite values. */ if (buf[0] == '\0' || eptr != &buf[len] || !isfinite(d)) { __redisReaderSetError(r,REDIS_ERR_PROTOCOL, diff --git a/sds.c b/sds.c index 21ecec04e..ab368ffd8 100644 --- a/sds.c +++ b/sds.c @@ -273,7 +273,7 @@ sds sdsRemoveFreeSpace(sds s) { return s; } -/* Return the total size of the allocation of the specifed sds string, +/* Return the total size of the allocation of the specified sds string, * including: * 1) The sds header before the pointer. * 2) The string. @@ -389,7 +389,7 @@ sds sdscatlen(sds s, const void *t, size_t len) { return s; } -/* Append the specified null termianted C string to the sds string 's'. +/* Append the specified null terminated C string to the sds string 's'. * * After the call, the passed sds string is no longer valid and all the * references must be substituted with the new pointer returned by the call. */ diff --git a/test.c b/test.c index 897daf8fe..b539ffc7e 100644 --- a/test.c +++ b/test.c @@ -156,7 +156,7 @@ static redisContext *select_database(redisContext *c) { assert(reply != NULL); freeReplyObject(reply); - /* Make sure the DB is emtpy */ + /* Make sure the DB is empty */ reply = redisCommand(c,"DBSIZE"); assert(reply != NULL); if (reply->type == REDIS_REPLY_INTEGER && reply->integer == 0) { @@ -1845,7 +1845,7 @@ static void test_command_timeout_during_pubsub(struct config config) { assert(ac != NULL && ac->err == 0); redisLibeventAttach(ac,base); - /* Configure a command timout */ + /* Configure a command timeout */ struct timeval command_timeout = {.tv_sec = 2}; redisAsyncSetTimeout(ac,command_timeout); @@ -2278,7 +2278,7 @@ static void test_async_polling(struct config config) { */ test("Ping/Pong from onConnected callback (Issue #931): "); c = do_aconnect(config, ASTEST_ISSUE_931_PING); - /* connect callback issues ping, reponse callback destroys context */ + /* connect callback issues ping, response callback destroys context */ while(astest.ac) redisPollTick(c, 0.1); assert(astest.connected == 0);