schurig/ynab-bank-importer

View on GitHub

Showing 1 of 6 total issues

Assignment Branch Condition size for to_ynab_transaction is too high. [16.12/15]
Open

  def to_ynab_transaction(transaction)
    return nil if date(transaction).nil? || date(transaction) > Date.today
    ::TransactionCreator.call(
      account_id: account_id,
      date: date(transaction),
Severity: Minor
Found in lib/dumper.rb by rubocop

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

Severity
Category
Status
Source
Language