Skip to content

Commit 1db19c9

Browse files
authored
Merge pull request #1253 from wmontgomery-splunk/wm/clean_up_rubocop
Clean up rubocop todos
2 parents cd88550 + f0abed3 commit 1db19c9

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

.rubocop_todo.yml

-14
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,6 @@ Lint/HashCompareByIdentity:
1111
Exclude:
1212
- 'lib/redis.rb'
1313

14-
# Offense count: 1
15-
# Cop supports --auto-correct.
16-
Lint/RedundantStringCoercion:
17-
Exclude:
18-
- 'examples/consistency.rb'
19-
20-
# Offense count: 2
21-
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers.
22-
# SupportedStyles: snake_case, normalcase, non_integer
23-
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
24-
Naming/VariableNumber:
25-
Exclude:
26-
- 'test/remote_server_control_commands_test.rb'
27-
2814
# Offense count: 6
2915
# Configuration parameters: AllowedMethods.
3016
# AllowedMethods: respond_to_missing?

examples/consistency.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def initialize(redis)
5252
def genkey
5353
# Write more often to a small subset of keys
5454
ks = rand > 0.5 ? @keyspace : @working_set
55-
"#{@prefix}key_#{rand(ks).to_s}"
55+
"#{@prefix}key_#{rand(ks)}"
5656
end
5757

5858
def check_consistency(key, value)

0 commit comments

Comments
 (0)