diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index ee825f6..3dba2dd 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,12 +1,12 @@ # This configuration was generated by # `rubocop --auto-gen-config --exclude-limit 180` -# on 2023-04-04 23:31:01 UTC using RuboCop version 1.49.0. +# on 2023-05-23 23:30:57 UTC using RuboCop version 1.51.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 # versions of RuboCop, may require this file to be generated again. -# Offense count: 8 +# Offense count: 9 # Configuration parameters: EnforcedStyle, AllowedGems, Include. # SupportedStyles: Gemfile, gems.rb, gemspec # Include: **/*.gemspec, **/Gemfile, **/gems.rb @@ -137,15 +137,6 @@ Style/KeywordParametersOrder: Exclude: - 'lib/china_bank/payroll_text_file/line.rb' -# Offense count: 3 -# This cop supports unsafe autocorrection (--autocorrect-all). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: literals, strict -Style/MutableConstant: - Exclude: - - 'lib/china_bank/payroll_text_file/line.rb' - - 'lib/china_bank/payroll_text_file/version.rb' - # Offense count: 2 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: PreferredDelimiters. diff --git a/lib/china_bank/payroll_text_file/line.rb b/lib/china_bank/payroll_text_file/line.rb index 890611c..b110d5d 100644 --- a/lib/china_bank/payroll_text_file/line.rb +++ b/lib/china_bank/payroll_text_file/line.rb @@ -6,11 +6,11 @@ module PayrollTextFile class Line include ActiveModel::Model - AMOUNT_RANGE = BigDecimal("0")..BigDecimal("99999999999.99") + AMOUNT_RANGE = (BigDecimal("0")..BigDecimal("99999999999.99")).freeze TYPES = { credit: "C", debit: "D" - } + }.freeze attr_accessor :account_type, :account_number, diff --git a/lib/china_bank/payroll_text_file/version.rb b/lib/china_bank/payroll_text_file/version.rb index a15f86a..c668b99 100644 --- a/lib/china_bank/payroll_text_file/version.rb +++ b/lib/china_bank/payroll_text_file/version.rb @@ -1,7 +1,7 @@ # :nocov: module ChinaBank module PayrollTextFile - VERSION = "1.1.0" + VERSION = "1.1.0".freeze end end # :nocov: