opennorth/govkit-ca

View on GitHub
lib/gov_kit-ca/postal_code.rb

Summary

Maintainability
A
1 hr
Test Coverage

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

      def self.find_province_by_postal_code(postal_code)
        case format_postal_code(postal_code)
        when /\AA/
          'Newfoundland and Labrador'
        when /\AB/
Severity: Minor
Found in lib/gov_kit-ca/postal_code.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status