From 6b7b7ebb8656d3c35c0b585872742f35da9e8caa Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Fri, 7 Apr 2023 23:55:45 +0200 Subject: Fix Layout/SpaceInsideReferenceBrackets offense ``` rubocop --only Layout/SpaceInsideReferenceBrackets -a ``` --- .rubocop_todo.yml | 9 --------- test/drawing/tc_d_lbls.rb | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 8f18d44c..34cfa002 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -209,15 +209,6 @@ Layout/SpaceInsideHashLiteralBraces: 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: 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 })) -- cgit v1.2.3