Skip to content
Permalink
Browse files

Convert commands to accept keyword arguments rather than option hashes.

This both help catching typos, and reduce needless allocations.
  • Loading branch information
byroot committed Jun 9, 2020
1 parent 8669555 commit 1e5d0a15f7f1e7d290b90bbd4191e5622e95b6a1
Showing with 185 additions and 217 deletions.
  1. +7 −1 .rubocop.yml
  2. +130 −163 lib/redis.rb
  3. +25 −30 lib/redis/distributed.rb
  4. +23 −23 test/lint/streams.rb
@@ -21,6 +21,9 @@ Lint/AssignmentInCondition:
Lint/UnifiedInteger:
Enabled: false

Lint/UnderscorePrefixedVariableName:
Enabled: false

Metrics/ClassLength:
Enabled: false

@@ -111,4 +114,7 @@ Naming/RescuedExceptionsVariableName:

Naming/AccessorMethodName:
Exclude:
- lib/redis/connection/ruby.rb
- lib/redis/connection/ruby.rb

Naming/MethodParameterName:
Enabled: false

0 comments on commit 1e5d0a1

Please sign in to comment.
You can’t perform that action at this time.