Fix Style/CommentedKeyword cop.

This commit is contained in:
Robert Haines 2020-02-09 15:23:35 +00:00
parent b3c4c37882
commit b3f241353a
3 changed files with 2 additions and 8 deletions

View File

@ -151,12 +151,6 @@ Style/ClassCheck:
- 'test/ioextras/fake_io_test.rb'
- 'test/output_stream_test.rb'
# Offense count: 2
Style/CommentedKeyword:
Exclude:
- 'lib/zip/ioextras.rb'
- 'lib/zip/streamable_stream.rb'
# Offense count: 26
Style/Documentation:
Enabled: false

View File

@ -25,7 +25,7 @@ module Zip
object == IO || super
end
end
end # IOExtras namespace module
end
end
require 'zip/ioextras/abstract_input_stream'

View File

@ -1,5 +1,5 @@
module Zip
class StreamableStream < DelegateClass(Entry) # nodoc:all
class StreamableStream < DelegateClass(Entry) # :nodoc:all
def initialize(entry)
super(entry)
@temp_file = Tempfile.new(::File.basename(name))