fix rubocop Style/MethodCallParentheses cop
This commit is contained in:
parent
47b72f5cab
commit
930b5ae45b
|
@ -160,11 +160,6 @@ Style/IfUnlessModifier:
|
||||||
Style/InfiniteLoop:
|
Style/InfiniteLoop:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Offense count: 7
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
Style/MethodCallParentheses:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
# Offense count: 58
|
# Offense count: 58
|
||||||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||||||
Style/MethodName:
|
Style/MethodName:
|
||||||
|
|
|
@ -25,7 +25,7 @@ class ZipFileGenerator
|
||||||
io = Zip::File.open(@outputFile, Zip::File::CREATE)
|
io = Zip::File.open(@outputFile, Zip::File::CREATE)
|
||||||
|
|
||||||
writeEntries(entries, '', io)
|
writeEntries(entries, '', io)
|
||||||
io.close()
|
io.close
|
||||||
end
|
end
|
||||||
|
|
||||||
# A helper method to make the recursion work.
|
# A helper method to make the recursion work.
|
||||||
|
@ -44,7 +44,7 @@ class ZipFileGenerator
|
||||||
subdir.delete('..')
|
subdir.delete('..')
|
||||||
writeEntries(subdir, zipFilePath, io)
|
writeEntries(subdir, zipFilePath, io)
|
||||||
else
|
else
|
||||||
io.get_output_stream(zipFilePath) { |f| f.puts(File.open(diskFilePath, 'rb').read()) }
|
io.get_output_stream(zipFilePath) { |f| f.puts(File.open(diskFilePath, 'rb').read) }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -77,7 +77,7 @@ class MainApp < Gtk::Window
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
mainApp = MainApp.new()
|
mainApp = MainApp.new
|
||||||
|
|
||||||
mainApp.show_all
|
mainApp.show_all
|
||||||
|
|
||||||
|
|
|
@ -88,5 +88,5 @@ zd = ZipDialog.new
|
||||||
zd.load(ARGV[0])
|
zd.load(ARGV[0])
|
||||||
|
|
||||||
a.mainWidget = zd
|
a.mainWidget = zd
|
||||||
zd.show()
|
zd.show
|
||||||
a.exec()
|
a.exec
|
||||||
|
|
|
@ -25,7 +25,7 @@ class ZipFileExtractTest < MiniTest::Test
|
||||||
|
|
||||||
assert(File.exist?(EXTRACTED_FILENAME))
|
assert(File.exist?(EXTRACTED_FILENAME))
|
||||||
AssertEntry.assert_contents(EXTRACTED_FILENAME,
|
AssertEntry.assert_contents(EXTRACTED_FILENAME,
|
||||||
entry.get_input_stream() { |is| is.read })
|
entry.get_input_stream { |is| is.read })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ class ZipFileSplitTest < MiniTest::Test
|
||||||
|
|
||||||
assert(File.exist?(EXTRACTED_FILENAME))
|
assert(File.exist?(EXTRACTED_FILENAME))
|
||||||
AssertEntry.assert_contents(EXTRACTED_FILENAME,
|
AssertEntry.assert_contents(EXTRACTED_FILENAME,
|
||||||
entry.get_input_stream() { |is| is.read })
|
entry.get_input_stream { |is| is.read })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue