railslove/cmxl

View on GitHub
lib/cmxl/fields/transaction.rb

Summary

Maintainability
A
3 hrs
Test Coverage
A
94%

Class Transaction has 29 methods (exceeds 20 allowed). Consider refactoring.
Open

    class Transaction < Field
      self.tag = 61
      self.parser = %r{^(?<date>\d{6})(?<entry_date>\d{4})?(?<storno_flag>R?)(?<funds_code>[CD]{1})(?<currency_letter>[a-zA-Z])?(?<amount>\d{1,12},\d{0,2})(?<swift_code>(?:N|F).{3})(?<reference>NONREF|(.(?!\/\/)){,16}([^\/]){,1})((?:\/\/)(?<bank_reference>[^\n]{,16}))?((?:\n)(?<supplementary>.{,34}))?$}

      attr_accessor :details
Severity: Minor
Found in lib/cmxl/fields/transaction.rb - About 3 hrs to fix

    There are no issues that match your filters.

    Category
    Status