summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.rubocop_todo.yml9
-rw-r--r--lib/axlsx/workbook/worksheet/row.rb4
-rw-r--r--test/workbook/worksheet/tc_worksheet.rb4
3 files changed, 4 insertions, 13 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 86ee1482..9d8e7434 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -155,15 +155,6 @@ Layout/MultilineOperationIndentation:
Layout/SpaceAfterComma:
Enabled: false
-# Offense count: 8
-# This cop supports safe autocorrection (--autocorrect).
-# Configuration parameters: EnforcedStyleInsidePipes.
-# SupportedStylesInsidePipes: space, no_space
-Layout/SpaceAroundBlockParameters:
- Exclude:
- - 'lib/axlsx/workbook/worksheet/row.rb'
- - 'test/workbook/worksheet/tc_worksheet.rb'
-
# Offense count: 184
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
diff --git a/lib/axlsx/workbook/worksheet/row.rb b/lib/axlsx/workbook/worksheet/row.rb
index 376719ce..ee5b9509 100644
--- a/lib/axlsx/workbook/worksheet/row.rb
+++ b/lib/axlsx/workbook/worksheet/row.rb
@@ -105,14 +105,14 @@ module Axlsx
# sets the color for every cell in this row
def color=(color)
- each_with_index do | cell, index |
+ each_with_index do |cell, index|
cell.color = color.is_a?(Array) ? color[index] : color
end
end
# sets the style for every cell in this row
def style=(style)
- each_with_index do | cell, index |
+ each_with_index do |cell, index|
cell.style = style.is_a?(Array) ? style[index] : style
end
end
diff --git a/test/workbook/worksheet/tc_worksheet.rb b/test/workbook/worksheet/tc_worksheet.rb
index 72fdf556..ed363118 100644
--- a/test/workbook/worksheet/tc_worksheet.rb
+++ b/test/workbook/worksheet/tc_worksheet.rb
@@ -233,7 +233,7 @@ class TestWorksheet < Test::Unit::TestCase
@ws.add_row [1,2,3,4]
@ws.add_row [1,2,3,4]
@ws.col_style( (1..2), 1, :row_offset=>1)
- @ws.rows[(1..-1)].each do | r |
+ @ws.rows[(1..-1)].each do |r|
assert_equal(r.cells[1].style, 1)
assert_equal(r.cells[2].style, 1)
end
@@ -271,7 +271,7 @@ class TestWorksheet < Test::Unit::TestCase
@ws.add_row [1,2,3,4]
@ws.add_row [1,2,3,4]
@ws.row_style 1, 1, :col_offset=>1
- @ws.rows[1].cells[(1..-1)].each do | c |
+ @ws.rows[1].cells[(1..-1)].each do |c|
assert_equal(c.style, 1)
end
assert_equal(@ws.rows[1].cells[0].style, 0)