diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 6127c6a..81aeaed 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-01-18 23:34:08 UTC using RuboCop version 1.60.1. # 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 @@ -263,14 +263,6 @@ Metrics/MethodLength: Metrics/ParameterLists: Max: 6 -# Offense count: 1 -# This cop supports unsafe autocorrection (--autocorrect-all). -# Configuration parameters: EnforcedStyleForLeadingUnderscores. -# SupportedStylesForLeadingUnderscores: disallowed, required, optional -Naming/MemoizedInstanceVariableName: - Exclude: - - 'lib/excel_templating/render_helper.rb' - # Offense count: 1 # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros. # NamePrefix: is_, has_, have_ @@ -291,16 +283,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. diff --git a/lib/excel_templating/render_helper.rb b/lib/excel_templating/render_helper.rb index 87a0f8c..19fee53 100644 --- a/lib/excel_templating/render_helper.rb +++ b/lib/excel_templating/render_helper.rb @@ -8,7 +8,7 @@ def letter_for(one_based_index) private def letters - @row_letters ||= ('A' .. 'ZZ').to_a + @letters ||= ('A' .. 'ZZ').to_a end end end