therebelrobot/countryjs

View on GitHub

Showing 1 of 1 total issue

Function Country has 55 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var Country = function () {
  var _returnCountry = function (country, type) {
    if (type === 'name') {
      var key = findIndex[normalizeName(country)]
      return _countryList[key]
Severity: Major
Found in lib/countryjs.js - About 2 hrs to fix
    Severity
    Category
    Status
    Source
    Language