summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-04-05 17:26:03 +0200
committerGeremia Taglialatela <[email protected]>2023-04-06 09:54:52 +0200
commitf46c7cf4c1cd961557dc5d0abf774e4c78aafb7c (patch)
tree37b3397ad493d9e6bb66a3af4623d7916fca62c7
parent7e90a46d43fefcf5ff7c76c14b29b6998245cfc5 (diff)
downloadcaxlsx-f46c7cf4c1cd961557dc5d0abf774e4c78aafb7c.tar.gz
caxlsx-f46c7cf4c1cd961557dc5d0abf774e4c78aafb7c.zip
Fix Layout/TrailingEmptyLines offenses
``` rubocop --only Layout/TrailingEmptyLines -a ```
-rw-r--r--lib/axlsx/drawing/ax_data_source.rb1
-rw-r--r--lib/axlsx/drawing/num_data_source.rb1
-rw-r--r--lib/axlsx/util/accessors.rb1
-rw-r--r--lib/axlsx/workbook/defined_names.rb1
-rw-r--r--lib/axlsx/workbook/workbook_views.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/break.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/conditional_formattings.rb1
-rw-r--r--lib/axlsx/workbook/worksheet/data_validations.rb2
-rw-r--r--test/drawing/tc_axes.rb2
-rw-r--r--test/workbook/worksheet/auto_filter/tc_filters.rb1
-rw-r--r--test/workbook/worksheet/tc_comment.rb1
-rw-r--r--test/workbook/worksheet/tc_comments.rb2
-rw-r--r--test/workbook/worksheet/tc_header_footer.rb1
-rw-r--r--test/workbook/worksheet/tc_sheet_protection.rb54
-rw-r--r--test/workbook/worksheet/tc_worksheet_hyperlink.rb2
15 files changed, 1 insertions, 72 deletions
diff --git a/lib/axlsx/drawing/ax_data_source.rb b/lib/axlsx/drawing/ax_data_source.rb
index ebbfe2cd..cef683dd 100644
--- a/lib/axlsx/drawing/ax_data_source.rb
+++ b/lib/axlsx/drawing/ax_data_source.rb
@@ -23,4 +23,3 @@ module Axlsx
end
end
-
diff --git a/lib/axlsx/drawing/num_data_source.rb b/lib/axlsx/drawing/num_data_source.rb
index e0e97e41..24bb9c4d 100644
--- a/lib/axlsx/drawing/num_data_source.rb
+++ b/lib/axlsx/drawing/num_data_source.rb
@@ -59,4 +59,3 @@ module Axlsx
end
end
end
-
diff --git a/lib/axlsx/util/accessors.rb b/lib/axlsx/util/accessors.rb
index 5062b0d4..d21388a0 100644
--- a/lib/axlsx/util/accessors.rb
+++ b/lib/axlsx/util/accessors.rb
@@ -61,4 +61,3 @@ module Axlsx
end
end
end
-
diff --git a/lib/axlsx/workbook/defined_names.rb b/lib/axlsx/workbook/defined_names.rb
index 11f10a56..abe8197a 100644
--- a/lib/axlsx/workbook/defined_names.rb
+++ b/lib/axlsx/workbook/defined_names.rb
@@ -18,4 +18,3 @@ module Axlsx
end
end
end
-
diff --git a/lib/axlsx/workbook/workbook_views.rb b/lib/axlsx/workbook/workbook_views.rb
index c32bd632..0a059e8a 100644
--- a/lib/axlsx/workbook/workbook_views.rb
+++ b/lib/axlsx/workbook/workbook_views.rb
@@ -18,5 +18,3 @@ module Axlsx
end
end
end
-
-
diff --git a/lib/axlsx/workbook/worksheet/break.rb b/lib/axlsx/workbook/worksheet/break.rb
index 2e40a265..bf019eeb 100644
--- a/lib/axlsx/workbook/worksheet/break.rb
+++ b/lib/axlsx/workbook/worksheet/break.rb
@@ -32,4 +32,3 @@ module Axlsx
end
end
end
-
diff --git a/lib/axlsx/workbook/worksheet/conditional_formattings.rb b/lib/axlsx/workbook/worksheet/conditional_formattings.rb
index 2fe9f2e8..23301ff8 100644
--- a/lib/axlsx/workbook/worksheet/conditional_formattings.rb
+++ b/lib/axlsx/workbook/worksheet/conditional_formattings.rb
@@ -22,4 +22,3 @@ module Axlsx
end
end
-
diff --git a/lib/axlsx/workbook/worksheet/data_validations.rb b/lib/axlsx/workbook/worksheet/data_validations.rb
index cdfcf375..44afadf6 100644
--- a/lib/axlsx/workbook/worksheet/data_validations.rb
+++ b/lib/axlsx/workbook/worksheet/data_validations.rb
@@ -24,5 +24,3 @@ module Axlsx
end
end
-
-
diff --git a/test/drawing/tc_axes.rb b/test/drawing/tc_axes.rb
index e3c26936..eabf9a8d 100644
--- a/test/drawing/tc_axes.rb
+++ b/test/drawing/tc_axes.rb
@@ -5,4 +5,4 @@ class TestAxes < Test::Unit::TestCase
assert_raise(ArgumentError) { Axlsx::Axes.new(:val_axis => Axlsx::ValAxis, :cat_axis => Axlsx::CatAxis) }
assert_nothing_raised { Axlsx::Axes.new(:cat_axis => Axlsx::CatAxis, :val_axis => Axlsx::ValAxis) }
end
-end \ No newline at end of file
+end
diff --git a/test/workbook/worksheet/auto_filter/tc_filters.rb b/test/workbook/worksheet/auto_filter/tc_filters.rb
index dc0e985c..5de5d7d1 100644
--- a/test/workbook/worksheet/auto_filter/tc_filters.rb
+++ b/test/workbook/worksheet/auto_filter/tc_filters.rb
@@ -47,4 +47,3 @@ class TestFilters < Test::Unit::TestCase
assert_equal(1, doc.xpath('//filters[@blank=1]').size)
end
end
-
diff --git a/test/workbook/worksheet/tc_comment.rb b/test/workbook/worksheet/tc_comment.rb
index e66abb9a..b736e5c5 100644
--- a/test/workbook/worksheet/tc_comment.rb
+++ b/test/workbook/worksheet/tc_comment.rb
@@ -69,4 +69,3 @@ class TestComment < Test::Unit::TestCase
assert_equal("some text", doc.xpath("//comment/text").text)
end
end
-
diff --git a/test/workbook/worksheet/tc_comments.rb b/test/workbook/worksheet/tc_comments.rb
index 91fb49a2..68b3ac71 100644
--- a/test/workbook/worksheet/tc_comments.rb
+++ b/test/workbook/worksheet/tc_comments.rb
@@ -53,5 +53,3 @@ class TestComments < Test::Unit::TestCase
# assert_equal(doc.xpath("//comment").size, @ws.comments.size)
end
end
-
-
diff --git a/test/workbook/worksheet/tc_header_footer.rb b/test/workbook/worksheet/tc_header_footer.rb
index caf1b9df..bba879a1 100644
--- a/test/workbook/worksheet/tc_header_footer.rb
+++ b/test/workbook/worksheet/tc_header_footer.rb
@@ -148,4 +148,3 @@ class TestHeaderFooter < Test::Unit::TestCase
assert_equal(0, doc.xpath(".//headerFooter/firstFooter").size)
end
end
-
diff --git a/test/workbook/worksheet/tc_sheet_protection.rb b/test/workbook/worksheet/tc_sheet_protection.rb
index 6ca5dafd..cf3b8957 100644
--- a/test/workbook/worksheet/tc_sheet_protection.rb
+++ b/test/workbook/worksheet/tc_sheet_protection.rb
@@ -61,57 +61,3 @@ class TestSheetProtection < Test::Unit::TestCase
end
end
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/test/workbook/worksheet/tc_worksheet_hyperlink.rb b/test/workbook/worksheet/tc_worksheet_hyperlink.rb
index 2245996a..b456694d 100644
--- a/test/workbook/worksheet/tc_worksheet_hyperlink.rb
+++ b/test/workbook/worksheet/tc_worksheet_hyperlink.rb
@@ -52,5 +52,3 @@ class TestWorksheetHyperlink < Test::Unit::TestCase
assert_equal(doc.xpath("//xmlns:hyperlink[@r:id='#{@a.relationship.Id}']").size, 1)
end
end
-
-