Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.

Commit 8177e01

Browse files
committed
Ignore RuboCop failure for long block in Twitter::NullObject
1 parent 7890e72 commit 8177e01

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.rubocop.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Metrics/BlockLength:
2+
Max: 33
3+
14
Metrics/BlockNesting:
25
Max: 2
36

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ end
1111
group :test do
1212
gem 'coveralls'
1313
gem 'rspec', '>= 2.14'
14-
gem 'rubocop', '>= 0.37'
14+
gem 'rubocop', '>= 0.46'
1515
gem 'simplecov', '>= 0.9'
1616
gem 'timecop'
1717
gem 'webmock'

lib/twitter/null_object.rb

-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ def respond_to?(*)
1717
true
1818
end
1919

20-
def respond_to?(*)
21-
true
22-
end
23-
2420
def instance_of?(klass)
2521
raise(TypeError, 'class or module required') unless klass.is_a?(Class)
2622
self.class == klass

0 commit comments

Comments
 (0)