solidusio-contrib/solidus_globalize

View on GitHub

Showing 2 of 7 total issues

Function taxon_tree_menu has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  root.taxon_tree_menu = function(obj, context) {
    var admin_base_url, edit_url, id, translation_base_path, translation_url;
    id = obj.attr("id");
    admin_base_url = Spree.path_for("admin/taxonomies/" + obj.data('taxonomy-id') + "/taxons");
    edit_url = admin_base_url.clone();
Severity: Minor
Found in app/assets/javascripts/spree/backend/solidus_globalize.js - About 1 hr to fix

    Method prepended has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          def self.prepended(base)
            base.class_eval do
              translates :name,
                :description,
                :meta_description,
    Severity: Minor
    Found in app/decorators/models/solidus_globalize/spree/product_decorator.rb - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language