fix rubocop Style/EmptyLinesAroundMethodBody cop
This commit is contained in:
parent
b9a757e045
commit
2ac80869dd
|
@ -110,11 +110,6 @@ Style/ElseAlignment:
|
||||||
Style/EmptyElse:
|
Style/EmptyElse:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Offense count: 4
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
Style/EmptyLinesAroundMethodBody:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
# Offense count: 13
|
# Offense count: 13
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||||||
|
|
|
@ -31,7 +31,6 @@ class ZipFileGenerator
|
||||||
private
|
private
|
||||||
|
|
||||||
def writeEntries(entries, path, io)
|
def writeEntries(entries, path, io)
|
||||||
|
|
||||||
entries.each do |e|
|
entries.each do |e|
|
||||||
zipFilePath = path == "" ? e : File.join(path, e)
|
zipFilePath = path == "" ? e : File.join(path, e)
|
||||||
diskFilePath = File.join(@inputDir, zipFilePath)
|
diskFilePath = File.join(@inputDir, zipFilePath)
|
||||||
|
|
|
@ -74,7 +74,6 @@ class ZipDialog < ZipDialogUI
|
||||||
else
|
else
|
||||||
zipfile { |zf| items.each { |e| zf.extract(e, File.join(d, e)) } }
|
zipfile { |zf| items.each { |e| zf.extract(e, File.join(d, e)) } }
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
slots 'add_files()', 'extract_files()'
|
slots 'add_files()', 'extract_files()'
|
||||||
|
|
|
@ -25,7 +25,6 @@ class ZipFsDirIteratorTest < MiniTest::Test
|
||||||
assert_raises(IOError, "closed directory") do
|
assert_raises(IOError, "closed directory") do
|
||||||
@dirIt.tell
|
@dirIt.tell
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_each
|
def test_each
|
||||||
|
|
|
@ -109,7 +109,6 @@ class ZipOutputStreamTest < MiniTest::Test
|
||||||
::Zip::File.open(TEST_ZIP.zip_name) do |zf|
|
::Zip::File.open(TEST_ZIP.zip_name) do |zf|
|
||||||
assert_equal(stored_text + stored_text2, zf.read(entry_name))
|
assert_equal(stored_text + stored_text2, zf.read(entry_name))
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def assert_i_o_error_in_closed_stream
|
def assert_i_o_error_in_closed_stream
|
||||||
|
|
Loading…
Reference in New Issue