Unverified Commit 0bfccc55 authored by Binbin's avatar Binbin Committed by GitHub
Browse files

Fixed some typos, add a spell check ci and others minor fix (#8890)

This PR adds a spell checker CI action that will fail future PRs if they introduce typos and spelling mistakes.
This spell checker is based on blacklist of common spelling mistakes, so it will not catch everything,
but at least it is also unlikely to cause false positives.

Besides that, the PR also fixes many spelling mistakes and types, not all are a result of the spell checker we use.

Here's a summary of other changes:
1. Scanned the entire source code and fixes all sorts of typos and spelling mistakes (including missing or extra spaces).
2. Outdated function / variable / argument names in comments
3. Fix outdated keyspace masks error log when we check `config.notify-keyspace-events` in loadServerConfigFromString.
4. Trim the white space at the end of line in `module.c`. Check: https://github.com/redis/redis/pull/7751
5. Some outdated https link URLs.
6. Fix some outdated comment. Such as:
    - In README: about the rdb, we used to said create a `thread`, change to `process`
    - dbRandomKey function coment (about the dictGetRandomKey, change to dictGetFairRandomKey)
    - notifyKeyspaceEvent fucntion comment (add type arg)
    - Some others minor fix in comment (Most of them are incorrectly quoted by variable names)
7. Modified the error log so that users can easily distinguish between TCP and TLS in `changeBindAddr`
parent 8a86bca5
# redis-sha1.rb - Copyright (C) 2009 Salvatore Sanfilippo # redis-sha1.rb - Copyright (C) 2009 Salvatore Sanfilippo
# BSD license, See the COPYING file for more information. # BSD license, See the COPYING file for more information.
# #
# Performs the SHA1 sum of the whole datset. # Performs the SHA1 sum of the whole dataset.
# This is useful to spot bugs in persistence related code and to make sure # This is useful to spot bugs in persistence related code and to make sure
# Slaves and Masters are in SYNC. # Slaves and Masters are in SYNC.
# #
......
...@@ -101,7 +101,7 @@ if {![file exists speed-regression.tcl]} { ...@@ -101,7 +101,7 @@ if {![file exists speed-regression.tcl]} {
exit 1 exit 1
} }
# Make sure there is not already a server runnign on port 12123 # Make sure there is not already a server running on port 12123
set is_not_running [catch {set r [redis 127.0.0.1 $::port]}] set is_not_running [catch {set r [redis 127.0.0.1 $::port]}]
if {!$is_not_running} { if {!$is_not_running} {
puts "Sorry, you have a running server on port $::port" puts "Sorry, you have a running server on port $::port"
......
...@@ -17,7 +17,7 @@ freq = {} ...@@ -17,7 +17,7 @@ freq = {}
} }
} }
# Print the frequency each element was yeld to process it with gnuplot # Print the frequency each element was yield to process it with gnuplot
freq.each{|item,count| freq.each{|item,count|
puts "#{item} #{count}" puts "#{item} #{count}"
} }
/* This is a small program used in order to understand the collison rate /* This is a small program used in order to understand the collision rate
* of CRC64 (ISO version) VS other stronger hashing functions in the context * of CRC64 (ISO version) VS other stronger hashing functions in the context
* of hashing keys for the Redis "tracking" feature (client side caching * of hashing keys for the Redis "tracking" feature (client side caching
* assisted by the server). * assisted by the server).
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* prefix:<counter> * prefix:<counter>
* *
* And counts the resulting collisons generated in the 24 bits of output * And counts the resulting collisions generated in the 24 bits of output
* needed for the tracking feature invalidation table (16 millions + entries) * needed for the tracking feature invalidation table (16 millions + entries)
* *
* Compile with: * Compile with:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment