sharetribe/sharetribe

View on GitHub
app/helpers/country_i18n_helper.rb

Summary

Maintainability
A
3 hrs
Test Coverage

Method us_states has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def us_states
    [
      ['Alabama', 'AL'],
      ['Alaska', 'AK'],
      ['Arizona', 'AZ'],
Severity: Major
Found in app/helpers/country_i18n_helper.rb - About 2 hrs to fix

    Method mx_states has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def mx_states
        [
          ["Aguascalientes", "AG"],
          ["Baja California", "BC"],
          ["Baja California Sur", "BS"],
    Severity: Minor
    Found in app/helpers/country_i18n_helper.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status