Skip to content

Commit d0d8d06

Browse files
committed
Lint/UnifiedInteger
1 parent e6cc0a1 commit d0d8d06

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

9-
# Offense count: 2
10-
# Cop supports --auto-correct.
11-
Lint/UnifiedInteger:
12-
Exclude:
13-
- 'spec/spec_helper.rb'
14-
159
# Offense count: 2
1610
Metrics/AbcSize:
1711
Max: 90

spec/spec_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ def new_client(option_overrides = {})
3737
end
3838

3939
def num_classes
40+
# rubocop:disable Lint/UnifiedInteger
4041
0.class == Integer ? [Integer] : [Fixnum, Bignum]
42+
# rubocop:enable Lint/UnifiedInteger
4143
end
4244

4345
config.before :each do

0 commit comments

Comments
 (0)