From 555a3cc193458679a9fc6f8cc664b3cfe590fa74 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Sat, 8 Apr 2023 00:00:33 +0200 Subject: Fix an indentation issue manually Also regenerate config --- .rubocop_todo.yml | 65 ++++-------------------------------------- lib/axlsx/stylesheet/styles.rb | 4 +-- test/tc_axlsx.rb | 3 +- 3 files changed, 9 insertions(+), 63 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 34cfa002..e9cbc738 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2023-04-05 15:57:00 UTC using RuboCop version 1.49.0. +# on 2023-04-07 21:59:59 UTC using RuboCop version 1.49.0. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new @@ -36,12 +36,6 @@ Layout/ArgumentAlignment: - 'lib/axlsx/workbook/worksheet/sheet_view.rb' - 'lib/axlsx/workbook/worksheet/table_style_info.rb' -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -Layout/ClosingParenthesisIndentation: - Exclude: - - 'lib/axlsx/stylesheet/styles.rb' - # Offense count: 90 # This cop supports safe autocorrection (--autocorrect). Layout/EmptyLineAfterGuardClause: @@ -54,7 +48,7 @@ Layout/EmptyLineAfterGuardClause: Layout/EmptyLinesAroundClassBody: Enabled: false -# Offense count: 32 +# Offense count: 31 # This cop supports safe autocorrection (--autocorrect). Layout/EmptyLinesAroundMethodBody: Enabled: false @@ -72,7 +66,7 @@ Layout/EmptyLinesAroundModuleBody: Layout/ExtraSpacing: Enabled: false -# Offense count: 1 +# Offense count: 2 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: IndentationWidth. # SupportedStyles: special_inside_parentheses, consistent, align_braces @@ -113,7 +107,7 @@ Layout/HeredocIndentation: Layout/IndentationConsistency: Enabled: false -# Offense count: 126 +# Offense count: 118 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: Width, AllowedPatterns. Layout/IndentationWidth: @@ -125,23 +119,6 @@ Layout/IndentationWidth: Layout/LeadingCommentSpace: Enabled: false -# Offense count: 2 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: symmetrical, new_line, same_line -Layout/MultilineHashBraceLayout: - Exclude: - - 'lib/axlsx/stylesheet/styles.rb' - - 'test/tc_axlsx.rb' - -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: symmetrical, new_line, same_line -Layout/MultilineMethodCallBraceLayout: - Exclude: - - 'lib/axlsx/stylesheet/styles.rb' - # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, IndentationWidth. @@ -162,7 +139,7 @@ Layout/SpaceAfterComma: Layout/SpaceAroundEqualsInParameterDefault: Enabled: false -# Offense count: 343 +# Offense count: 342 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator. # SupportedStylesForExponentOperator: space, no_space @@ -740,13 +717,6 @@ Style/HashEachMethods: Style/HashSyntax: Enabled: false -# Offense count: 2 -# This cop supports unsafe autocorrection (--autocorrect-all). -Style/HashTransformKeys: - Exclude: - - 'lib/axlsx/workbook/worksheet/cell_serializer.rb' - - 'lib/axlsx/workbook/worksheet/rich_text_run.rb' - # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowIfModifier. @@ -1143,17 +1113,6 @@ Style/Semicolon: Style/SingleLineMethods: Enabled: false -# Offense count: 6 -# This cop supports unsafe autocorrection (--autocorrect-all). -Style/SlicingWithRange: - Exclude: - - 'lib/axlsx.rb' - - 'lib/axlsx/drawing/area_chart.rb' - - 'lib/axlsx/drawing/line_chart.rb' - - 'lib/axlsx/util/simple_typed_list.rb' - - 'lib/axlsx/workbook/worksheet/pivot_table.rb' - - 'lib/axlsx/workbook/worksheet/worksheet.rb' - # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowModifier. @@ -1240,14 +1199,6 @@ Style/TernaryParentheses: - 'lib/axlsx/drawing/scatter_series.rb' - 'lib/axlsx/workbook/worksheet/rich_text_run.rb' -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyleForMultiline. -# SupportedStylesForMultiline: comma, consistent_comma, no_comma -Style/TrailingCommaInArguments: - Exclude: - - 'lib/axlsx/stylesheet/styles.rb' - # Offense count: 3 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyleForMultiline. @@ -1284,12 +1235,6 @@ Style/TrivialAccessors: - 'lib/axlsx/workbook/worksheet/rich_text_run.rb' - 'lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb' -# Offense count: 2 -# This cop supports safe autocorrection (--autocorrect). -Style/UnpackFirst: - Exclude: - - 'lib/axlsx/workbook/worksheet/sheet_protection.rb' - # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Style/WhileUntilDo: diff --git a/lib/axlsx/stylesheet/styles.rb b/lib/axlsx/stylesheet/styles.rb index a28785c9..a1f541c9 100644 --- a/lib/axlsx/stylesheet/styles.rb +++ b/lib/axlsx/stylesheet/styles.rb @@ -445,8 +445,8 @@ module Axlsx border.prs << BorderPr.new({ :name => edge, :style => edge_b_opts[:style], - :color => Color.new(:rgb => edge_b_opts[:color]) }, - ) + :color => Color.new(:rgb => edge_b_opts[:color]) + }) end end diff --git a/test/tc_axlsx.rb b/test/tc_axlsx.rb index e9ea0be6..af9d505c 100644 --- a/test/tc_axlsx.rb +++ b/test/tc_axlsx.rb @@ -3,7 +3,8 @@ require 'tc_helper.rb' class TestAxlsx < Test::Unit::TestCase def setup_wide - @wide_test_points = { "A3" => 0, + @wide_test_points = { + "A3" => 0, "Z3" => 25, "B3" => 1, "AA3" => 1 * 26 + 0, -- cgit v1.2.3