summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-04-07 23:55:45 +0200
committerGeremia Taglialatela <[email protected]>2023-04-07 23:55:45 +0200
commit6b7b7ebb8656d3c35c0b585872742f35da9e8caa (patch)
tree71bcdaaf6aee77a32902477b14ec5198e3aa73c7
parent6b1842b20e42b1de14433e162a025f936bce3260 (diff)
downloadcaxlsx-6b7b7ebb8656d3c35c0b585872742f35da9e8caa.tar.gz
caxlsx-6b7b7ebb8656d3c35c0b585872742f35da9e8caa.zip
Fix Layout/SpaceInsideReferenceBrackets offense
``` rubocop --only Layout/SpaceInsideReferenceBrackets -a ```
-rw-r--r--.rubocop_todo.yml9
-rw-r--r--test/drawing/tc_d_lbls.rb2
2 files changed, 1 insertions, 10 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 8f18d44c..34cfa002 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -210,15 +210,6 @@ Layout/SpaceInsideParens:
Enabled: false
# Offense count: 1
-# This cop supports safe autocorrection (--autocorrect).
-# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
-# SupportedStyles: space, no_space
-# SupportedStylesForEmptyBrackets: space, no_space
-Layout/SpaceInsideReferenceBrackets:
- Exclude:
- - 'test/drawing/tc_d_lbls.rb'
-
-# Offense count: 1
Lint/AmbiguousAssignment:
Exclude:
- 'test/workbook/worksheet/tc_rich_text.rb'
diff --git a/test/drawing/tc_d_lbls.rb b/test/drawing/tc_d_lbls.rb
index 60efeb7b..cc12b561 100644
--- a/test/drawing/tc_d_lbls.rb
+++ b/test/drawing/tc_d_lbls.rb
@@ -22,7 +22,7 @@ class TestDLbls < Test::Unit::TestCase
def test_initialization_with_optoins
- options_hash = Hash[*[@boolean_attributes.map { |name| [name, true] }] ]
+ options_hash = Hash[*[@boolean_attributes.map { |name| [name, true] }]]
d_lbls = Axlsx::DLbls.new(Axlsx::Pie3DChart, options_hash.merge( { :d_lbl_pos => :t }))