opennorth/govkit-ca

View on GitHub

Showing 1 of 3 total issues

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
    Severity
    Category
    Status
    Source
    Language