kputnam/stupidedi

View on GitHub
lib/stupidedi/config.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Method hipaa has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def hipaa(base = default)
      base.customize do |c|
        c.transaction_set.customize do |x|
          x.register("004010",       "HP", "835") { Stupidedi::TransactionSets::FortyTen::Standards::HP835 }
          x.register("004010X091A1", "HP", "835") { Stupidedi::TransactionSets::FortyTen::Implementations::X091A1::HP835 }
Severity: Minor
Found in lib/stupidedi/config.rb - About 1 hr to fix

    Method contrib has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def contrib(base = default)
          base.customize do |c|
            c.transaction_set.customize do |x|
              x.register("002001", "SH", "856") { Stupidedi::TransactionSets::TwoThousandOne::Standards::SH856 }
              x.register("002001", "PO", "830") { Stupidedi::TransactionSets::TwoThousandOne::Standards::PO830 }
    Severity: Minor
    Found in lib/stupidedi/config.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status