Skip to content

Commit

Permalink
disable some error prone rubocop suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
RDeckard committed Oct 30, 2024
1 parent cebc226 commit b0a4bde
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/cfonb/line_parser/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Base
['bank', (2..6)],
['branch', (11..15)],
['currency', (16..18)],
['scale', 19, proc { _1.to_i }],
['scale', 19, proc { _1.to_i }], # rubocop:disable Style/SymbolProc
['account', (21..31)],
['date', (34..39), proc { |value, instance| instance.send(:parse_date, value) }],
].freeze
Expand Down
2 changes: 1 addition & 1 deletion lib/cfonb/line_parser/operation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Operation < Base
['rejection_code', (40..41)],
['value_date', (42..47), proc { |value, instance| instance.send(:parse_date, value) }],
['label', (48..79)],
['number', (81..87), proc { _1.to_i }],
['number', (81..87), proc { _1.to_i }], # rubocop:disable Style/SymbolProc
['exoneration_code', 88],
['unavailability_code', 89],
['reference', (104..119)],
Expand Down
1 change: 0 additions & 1 deletion spec/cfonb/operation_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require 'cfonb'
require 'securerandom'
require 'ostruct'
require 'securerandom'

describe CFONB::Operation do
subject(:operation) { described_class.new(line) }
Expand Down

0 comments on commit b0a4bde

Please sign in to comment.