From 6a05d2dae67673a4b781a3be57799cef195dd426 Mon Sep 17 00:00:00 2001 From: Rubocop Challenger Date: Thu, 1 Feb 2024 23:33:17 +0000 Subject: [PATCH 1/3] :police_car: regenerate rubocop todo --- .rubocop_todo.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 6127c6a..959819b 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config --exclude-limit 180` -# on 2024-01-16 23:33:30 UTC using RuboCop version 1.60.0. +# on 2024-02-01 23:33:16 UTC using RuboCop version 1.60.2. # 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 @@ -291,16 +291,6 @@ Style/Alias: - 'lib/excel_templating/excel_abstraction/cell_range.rb' - 'lib/excel_templating/excel_abstraction/row.rb' -# Offense count: 2 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AllowOnlyRestArgument, UseAnonymousForwarding, RedundantRestArgumentNames, RedundantKeywordRestArgumentNames, RedundantBlockArgumentNames. -# RedundantRestArgumentNames: args, arguments -# RedundantKeywordRestArgumentNames: kwargs, options, opts -# RedundantBlockArgumentNames: blk, block, proc -Style/ArgumentsForwarding: - Exclude: - - 'lib/excel_templating/document.rb' - # Offense count: 7 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods. From 7c4875d90f88f5965748c45d1b1c012eaadaad1b Mon Sep 17 00:00:00 2001 From: Rubocop Challenger Date: Thu, 1 Feb 2024 23:33:19 +0000 Subject: [PATCH 2/3] :police_car: Style/RedundantDoubleSplatHashBraces --- .rubocop_todo.yml | 5 ----- lib/excel_templating/excel_abstraction/sheet.rb | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 959819b..8fbfde3 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -520,11 +520,6 @@ Style/RaiseArgs: - 'lib/excel_templating/excel_abstraction/active_cell_reference.rb' - 'lib/excel_templating/excel_abstraction/cell.rb' -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -Style/RedundantDoubleSplatHashBraces: - Exclude: - - 'lib/excel_templating/excel_abstraction/sheet.rb' # Offense count: 2 # This cop supports unsafe autocorrection (--autocorrect-all). diff --git a/lib/excel_templating/excel_abstraction/sheet.rb b/lib/excel_templating/excel_abstraction/sheet.rb index 55e4fe3..beecfb0 100644 --- a/lib/excel_templating/excel_abstraction/sheet.rb +++ b/lib/excel_templating/excel_abstraction/sheet.rb @@ -9,7 +9,7 @@ def initialize(sheet, workbook) end def header(value, **options) - cell(value, **{bold: 1}.merge(options)) + cell(value, bold: 1, **options) self end From ba5432ca37d4be490db1bb6114aa1581db139010 Mon Sep 17 00:00:00 2001 From: Rubocop Challenger Date: Thu, 1 Feb 2024 23:33:23 +0000 Subject: [PATCH 3/3] :police_car: regenerate rubocop todo --- .rubocop_todo.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 8fbfde3..ea8fa02 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config --exclude-limit 180` -# on 2024-02-01 23:33:16 UTC using RuboCop version 1.60.2. +# on 2024-02-01 23:33:21 UTC using RuboCop version 1.60.2. # 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 @@ -158,14 +158,13 @@ Layout/SpaceInsideBlockBraces: - 'lib/excel_templating/document/data_source_registry.rb' - 'spec/excel_abstraction/cell_reference_spec.rb' -# Offense count: 38 +# Offense count: 36 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces. # SupportedStyles: space, no_space, compact # SupportedStylesForEmptyBraces: space, no_space Layout/SpaceInsideHashLiteralBraces: Exclude: - - 'lib/excel_templating/excel_abstraction/sheet.rb' - 'spec/column_validation_spec.rb' - 'spec/excel_abstraction/cell_range_spec.rb' - 'spec/excel_abstraction/cell_spec.rb' @@ -520,7 +519,6 @@ Style/RaiseArgs: - 'lib/excel_templating/excel_abstraction/active_cell_reference.rb' - 'lib/excel_templating/excel_abstraction/cell.rb' - # Offense count: 2 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: SafeForConstants.