fix rubocop Style/EmptyLinesAroundModuleBody cop
This commit is contained in:
parent
2ac80869dd
commit
f67cf18e45
|
@ -110,12 +110,6 @@ Style/ElseAlignment:
|
|||
Style/EmptyElse:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 13
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||||
Style/EmptyLinesAroundModuleBody:
|
||||
Enabled: false
|
||||
|
||||
# Offense count: 1
|
||||
Style/EndOfLine:
|
||||
Enabled: false
|
||||
|
|
|
@ -41,5 +41,4 @@ module Zip
|
|||
[@atime, @mtime].pack("VV")
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -34,5 +34,4 @@ module Zip
|
|||
''
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
require 'zip'
|
||||
|
||||
module Zip
|
||||
|
||||
# The ZipFileSystem API provides an API for accessing entries in
|
||||
# a zip archive that is similar to ruby's builtin File and Dir
|
||||
# classes.
|
||||
|
@ -35,7 +34,6 @@ module Zip
|
|||
# }
|
||||
|
||||
module FileSystem
|
||||
|
||||
def initialize # :nodoc:
|
||||
mappedZip = ZipFileNameMapper.new(self)
|
||||
@zipFsDir = ZipFsDir.new(mappedZip)
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
module Zip
|
||||
module IOExtras #:nodoc:
|
||||
|
||||
CHUNK_SIZE = 131072
|
||||
|
||||
RANGE_ALL = 0..-1
|
||||
|
@ -26,7 +25,6 @@ module Zip
|
|||
object == IO || super
|
||||
end
|
||||
end
|
||||
|
||||
end # IOExtras namespace module
|
||||
end
|
||||
|
||||
|
|
|
@ -38,7 +38,6 @@ module Zip
|
|||
self << "\n" unless val[-1, 1] == "\n"
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -29,13 +29,11 @@ module Zip
|
|||
yield(fileName) if fileNamePattern.match(fileName)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
if __FILE__ == $0
|
||||
module ZipFindConsoleRunner
|
||||
|
||||
PATH_ARG_INDEX = 0;
|
||||
FILENAME_PATTERN_ARG_INDEX = 1;
|
||||
ZIPFILE_PATTERN_ARG_INDEX = 2;
|
||||
|
@ -63,7 +61,6 @@ if __FILE__ == $0
|
|||
def self.report_entry_found(fileName)
|
||||
puts fileName
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
ZipFindConsoleRunner.run(ARGV)
|
||||
|
|
|
@ -147,7 +147,6 @@ module AssertEntry
|
|||
end
|
||||
|
||||
module CrcTest
|
||||
|
||||
class TestOutputStream
|
||||
include ::Zip::IOExtras::AbstractOutputStream
|
||||
|
||||
|
@ -198,7 +197,6 @@ module CommonZipFileFixture
|
|||
end
|
||||
|
||||
module ExtraAssertions
|
||||
|
||||
def assert_forwarded(anObject, method, retVal, *expectedArgs)
|
||||
callArgs = nil
|
||||
setCallArgsProc = proc { |args| callArgs = args }
|
||||
|
@ -215,5 +213,4 @@ module ExtraAssertions
|
|||
ensure
|
||||
anObject.instance_eval "undef #{method}; alias #{method} #{method}_org"
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue