summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-04-07 23:53:12 +0200
committerGeremia Taglialatela <[email protected]>2023-04-07 23:53:12 +0200
commit7ca771d9e05e76e3a1e69ecf5b51085e4dad2f9e (patch)
tree24bbc1a02a4dd87be3f8f63ba8bbba362e8e52cb /lib
parent54e3784364712d87df5014767d417dd1d0ba1184 (diff)
downloadcaxlsx-7ca771d9e05e76e3a1e69ecf5b51085e4dad2f9e.tar.gz
caxlsx-7ca771d9e05e76e3a1e69ecf5b51085e4dad2f9e.zip
Fix Layout/SpaceInsideArrayLiteralBrackets offenses
``` rubocop --only Layout/SpaceInsideArrayLiteralBrackets -a ```
Diffstat (limited to 'lib')
-rw-r--r--lib/axlsx/workbook/worksheet/data_validation.rb2
-rw-r--r--lib/axlsx/workbook/worksheet/sheet_view.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/workbook/worksheet/data_validation.rb b/lib/axlsx/workbook/worksheet/data_validation.rb
index 0cd28069..d4b86e20 100644
--- a/lib/axlsx/workbook/worksheet/data_validation.rb
+++ b/lib/axlsx/workbook/worksheet/data_validation.rb
@@ -247,7 +247,7 @@ module Axlsx
private
def get_valid_attributes
- attributes = [:allowBlank, :error, :errorStyle, :errorTitle, :prompt, :promptTitle, :showErrorMessage, :showInputMessage, :sqref, :type ]
+ attributes = [:allowBlank, :error, :errorStyle, :errorTitle, :prompt, :promptTitle, :showErrorMessage, :showInputMessage, :sqref, :type]
if [:whole, :decimal, :data, :time, :date, :textLength].include?(@type)
attributes << [:operator, :formula1]
diff --git a/lib/axlsx/workbook/worksheet/sheet_view.rb b/lib/axlsx/workbook/worksheet/sheet_view.rb
index 0ca87b3b..104243ce 100644
--- a/lib/axlsx/workbook/worksheet/sheet_view.rb
+++ b/lib/axlsx/workbook/worksheet/sheet_view.rb
@@ -49,7 +49,7 @@ module Axlsx
:view, :top_left_cell, :color_id, :zoom_scale
# instance values that must be serialized as their own elements - e.g. not attributes.
- CHILD_ELEMENTS = [ :pane, :selections ]
+ CHILD_ELEMENTS = [:pane, :selections]
# The pane object for the sheet view
# @return [Pane]