biter777/countries

View on GitHub

Showing 2 of 60 total issues

File subdivisionsconst.go has 4890 lines of code (exceeds 500 allowed). Consider refactoring.
Open

// Package countries supports subdivisions as per ISO 3166-2.
//
// Data has been sourced from <https://www.ip2location.com/free/iso3166-2>. See
// license for further information.
package countries
Severity: Major
Found in subdivisionsconst.go - About 1 wk to fix

    Method CountryCode.FIPS has 531 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func (c CountryCode) FIPS() string {
        switch c {
        case 8:
            return "AL"
        case 12:
    Severity: Major
    Found in countries.go - About 2 days to fix
      Severity
      Category
      Status
      Source
      Language