Skip to content

Commit

Permalink
Convert commands to accept keyword arguments rather than option hashes.
Browse files Browse the repository at this point in the history
This both help catching typos, and reduce needless allocations.
  • Loading branch information
byroot committed Jun 9, 2020
1 parent 8669555 commit 1e5d0a1
Show file tree
Hide file tree
Showing 4 changed files with 185 additions and 217 deletions.
8 changes: 7 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ Lint/AssignmentInCondition:
Lint/UnifiedInteger:
Enabled: false

Lint/UnderscorePrefixedVariableName:
Enabled: false

Metrics/ClassLength:
Enabled: false

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

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

Naming/MethodParameterName:
Enabled: false
Loading

0 comments on commit 1e5d0a1

Please sign in to comment.