therebelrobot/countryjs

View on GitHub
lib/countryjs.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

    There are no issues that match your filters.

    Category
    Status