Repository navigation
spelling: otherwise, - #2248
spelling: otherwise,#2248
Conversation
jsoref
commented
Jun 20, 2025
- Subset of Spelling #2183
rainsupreme
left a comment
There was a problem hiding this comment.
Honestly ambivalent about this comma business 😆
Technically correct I suppose! Please rebase so it can be merged. If not updated in ~2 weeks I'll close this PR to help clean up the merge queue. It can always be re-opened!
Signed-off-by: Josh Soref <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (22)
🚧 Files skipped from review as they are similar to previous changes (18)
📝 WalkthroughWalkthroughThe pull request corrects grammar, punctuation, spacing, and wording in documentation comments, help text, test comments, utility comments, and configuration comments. It does not change executable behavior, public declarations, configuration values, or APIs. ChangesDocumentation corrections
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 11
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/adlist.c`:
- Line 43: Complete the return description for listCreate by explicitly stating
that, on success, it returns a pointer to the new list; retain the existing
NULL-on-error behavior.
In `@src/evict.c`:
- Around line 504-505: Update the comment near the ghost-key handling logic to
replace “If the key exists, is our pick.” with “If the key exists, it is our
pick.”, leaving the surrounding explanation unchanged.
In `@src/sds.c`:
- Around line 358-360: Update the comment near the manual string reallocation
logic to remove the extra “to,” so the sentence reads “letting the allocator do
the copy only if really needed.”
In `@src/sentinel.c`:
- Line 910: Correct the grammar in the edited comment near the script-removal
logging description by changing “did not terminated” to “did not terminate” or
“was not terminated,” without modifying the surrounding code.
In `@src/server.c`:
- Around line 1320-1321: Update the comment near the DB-saving guidance to
replace the incomplete “rehashing is bad as will cause” phrase with
grammatically correct wording, preserving the existing explanation about
copy-on-write memory pages.
- Line 3351: In the function documentation comment near the success return
description, change “the function return C_OK” to “the function returns C_OK”
without modifying the surrounding text or implementation.
In `@src/sort.c`:
- Around line 83-85: Update the comment describing the substitution object in
getDecodedObject to use “which we'll decrement later” instead of “that we'll
decrement later,” without changing the surrounding logic or wording.
In `@src/t_hash.c`:
- Around line 1788-1789: Update the explanatory comment near the HGETALL
handling to replace “to use a flat array makes more sense” with “using a flat
array makes more sense,” preserving the rest of the comment unchanged.
In `@src/t_set.c`:
- Around line 1478-1480: Update the comment near the dstset encoding
initialization to use the gerund form “when initializing” instead of “when
initialize,” without changing the surrounding meaning.
In `@src/t_string.c`:
- Line 1002: Update the comment near the LCS backtracking logic to clarify that
the direction is chosen by comparing the two possible predecessor LCS values,
rather than referring to an incomplete “largest LCS between” phrase. Preserve
the surrounding algorithm and make the description explicitly identify both
predecessor directions.
In `@utils/redis-sha1.rb`:
- Line 9: Update the comment near the unsorted-elements explanation in
redis-sha1.rb by replacing “equal dataset” with “the same dataset,” preserving
the rest of the wording.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: f211f127-f000-4c28-b5cc-3513d6988ff6
📒 Files selected for processing (47)
src/acl.csrc/adlist.csrc/ae.csrc/ae_epoll.csrc/aof.csrc/bitops.csrc/cluster.csrc/cluster_legacy.csrc/config.csrc/db.csrc/evict.csrc/expire.csrc/functions.csrc/geo.csrc/hyperloglog.csrc/listpack.csrc/lzf.hsrc/module.csrc/modules/hellotype.csrc/modules/helloworld.csrc/networking.csrc/object.csrc/rax.csrc/rdb.csrc/replication.csrc/scripting_engine.csrc/sds.csrc/sentinel.csrc/server.csrc/sort.csrc/syncio.csrc/t_hash.csrc/t_list.csrc/t_set.csrc/t_stream.csrc/t_string.csrc/t_zset.csrc/timeout.csrc/tracking.csrc/valkey-check-rdb.csrc/valkey-cli.csrc/ziplist.ctests/support/test.tcltests/unit/maxmemory.tcltests/unit/memefficiency.tclutils/redis-sha1.rbvalkey.conf
Resolve the conflict caused by upstream drift since this PR was opened: - src/t_zset.c: the skiplist was replaced by a B+ tree (valkey-io#4206, valkey-io#4359), so zslUpdateScore and its "Otherwise the skiplist is modified by removing and re-adding a new element" comment no longer exist. Drop that hunk. The other two t_zset.c hunks (zsetRank and addZpopInitialReply) still apply unchanged. Additionally fix seven sentence-initial "Otherwise" sites added upstream after this PR was opened, so the sweep is complete against unstable: - src/cluster_legacy.c, src/config.c, src/dict.h, src/functions.c, src/modules/lua/engine_lua.c, src/replication.c, src/vset.c Verified: builds clean, clang-format-18 reports no diff across the 45 changed src/ files, server starts, ZADD/ZRANGE/ZPOPMIN/ZRANK behave normally. Every edit lands inside a comment except the valkey-cli --help text. Zero sentence-initial "Otherwise" without a comma remain. Signed-off-by: Madelyn Olson <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## unstable #2248 +/- ##
============================================
- Coverage 78.50% 78.47% -0.04%
============================================
Files 166 166
Lines 88285 88285
============================================
- Hits 69312 69281 -31
- Misses 18973 19004 +31
🚀 New features to boost your workflow:
|
|
The CodeRabbit notes are out of scope and I'm resolving them. |