Skip to content

Commit

Permalink
Merge pull request #1253 from wmontgomery-splunk/wm/clean_up_rubocop
Browse files Browse the repository at this point in the history
Clean up rubocop todos
  • Loading branch information
byroot authored Feb 7, 2024
2 parents cd88550 + f0abed3 commit 1db19c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
14 changes: 0 additions & 14 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,6 @@ Lint/HashCompareByIdentity:
Exclude:
- 'lib/redis.rb'

# Offense count: 1
# Cop supports --auto-correct.
Lint/RedundantStringCoercion:
Exclude:
- 'examples/consistency.rb'

# Offense count: 2
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers.
# SupportedStyles: snake_case, normalcase, non_integer
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
Naming/VariableNumber:
Exclude:
- 'test/remote_server_control_commands_test.rb'

# Offense count: 6
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Expand Down
2 changes: 1 addition & 1 deletion examples/consistency.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def initialize(redis)
def genkey
# Write more often to a small subset of keys
ks = rand > 0.5 ? @keyspace : @working_set
"#{@prefix}key_#{rand(ks).to_s}"
"#{@prefix}key_#{rand(ks)}"
end

def check_consistency(key, value)
Expand Down

0 comments on commit 1db19c9

Please sign in to comment.