schurig/ynab-bank-importer

View on GitHub
lib/dumper.rb

Summary

Maintainability
A
0 mins
Test Coverage

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

There are no issues that match your filters.

Category
Status