fix rubocop Style/EmptyLinesAroundModuleBody cop

This commit is contained in:
Pavel Lobashov 2015-03-21 11:22:47 +03:00
parent 2ac80869dd
commit f67cf18e45
8 changed files with 0 additions and 19 deletions

View File

@ -110,12 +110,6 @@ Style/ElseAlignment:
Style/EmptyElse: Style/EmptyElse:
Enabled: false Enabled: false
# Offense count: 13
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/EmptyLinesAroundModuleBody:
Enabled: false
# Offense count: 1 # Offense count: 1
Style/EndOfLine: Style/EndOfLine:
Enabled: false Enabled: false

View File

@ -41,5 +41,4 @@ module Zip
[@atime, @mtime].pack("VV") [@atime, @mtime].pack("VV")
end end
end end
end end

View File

@ -34,5 +34,4 @@ module Zip
'' ''
end end
end end
end end

View File

@ -1,7 +1,6 @@
require 'zip' require 'zip'
module Zip module Zip
# The ZipFileSystem API provides an API for accessing entries in # The ZipFileSystem API provides an API for accessing entries in
# a zip archive that is similar to ruby's builtin File and Dir # a zip archive that is similar to ruby's builtin File and Dir
# classes. # classes.
@ -35,7 +34,6 @@ module Zip
# } # }
module FileSystem module FileSystem
def initialize # :nodoc: def initialize # :nodoc:
mappedZip = ZipFileNameMapper.new(self) mappedZip = ZipFileNameMapper.new(self)
@zipFsDir = ZipFsDir.new(mappedZip) @zipFsDir = ZipFsDir.new(mappedZip)

View File

@ -1,6 +1,5 @@
module Zip module Zip
module IOExtras #:nodoc: module IOExtras #:nodoc:
CHUNK_SIZE = 131072 CHUNK_SIZE = 131072
RANGE_ALL = 0..-1 RANGE_ALL = 0..-1
@ -26,7 +25,6 @@ module Zip
object == IO || super object == IO || super
end end
end end
end # IOExtras namespace module end # IOExtras namespace module
end end

View File

@ -38,7 +38,6 @@ module Zip
self << "\n" unless val[-1, 1] == "\n" self << "\n" unless val[-1, 1] == "\n"
end end
end end
end end
end end
end end

View File

@ -29,13 +29,11 @@ module Zip
yield(fileName) if fileNamePattern.match(fileName) yield(fileName) if fileNamePattern.match(fileName)
end end
end end
end end
end end
if __FILE__ == $0 if __FILE__ == $0
module ZipFindConsoleRunner module ZipFindConsoleRunner
PATH_ARG_INDEX = 0; PATH_ARG_INDEX = 0;
FILENAME_PATTERN_ARG_INDEX = 1; FILENAME_PATTERN_ARG_INDEX = 1;
ZIPFILE_PATTERN_ARG_INDEX = 2; ZIPFILE_PATTERN_ARG_INDEX = 2;
@ -63,7 +61,6 @@ if __FILE__ == $0
def self.report_entry_found(fileName) def self.report_entry_found(fileName)
puts fileName puts fileName
end end
end end
ZipFindConsoleRunner.run(ARGV) ZipFindConsoleRunner.run(ARGV)

View File

@ -147,7 +147,6 @@ module AssertEntry
end end
module CrcTest module CrcTest
class TestOutputStream class TestOutputStream
include ::Zip::IOExtras::AbstractOutputStream include ::Zip::IOExtras::AbstractOutputStream
@ -198,7 +197,6 @@ module CommonZipFileFixture
end end
module ExtraAssertions module ExtraAssertions
def assert_forwarded(anObject, method, retVal, *expectedArgs) def assert_forwarded(anObject, method, retVal, *expectedArgs)
callArgs = nil callArgs = nil
setCallArgsProc = proc { |args| callArgs = args } setCallArgsProc = proc { |args| callArgs = args }
@ -215,5 +213,4 @@ module ExtraAssertions
ensure ensure
anObject.instance_eval "undef #{method}; alias #{method} #{method}_org" anObject.instance_eval "undef #{method}; alias #{method} #{method}_org"
end end
end end