drhenner/ror_ecommerce

View on GitHub

Showing 203 of 346 total issues

File jquery.form.wizard.js has 392 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * jQuery wizard plug-in 3.0.5
 *
 *
 * Copyright (c) 2011 Jan Sundman (jan.sundman[at]aland.net)
Severity: Minor
Found in app/assets/javascripts/jqwizard/jquery.form.wizard.js - About 5 hrs to fix

    Function display has 123 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                display : function(eleAlignTo)
                {
                    if ($(this.ele).is('.dp-disabled')) return;
                    
                    eleAlignTo = eleAlignTo || this.ele;
    Severity: Major
    Found in app/assets/javascripts/jquery.datePicker-2.1.2.js - About 4 hrs to fix

      File jquery-migrate-1.1.1.js has 371 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*!
       * jQuery Migrate - v1.1.1 - 2013-02-16
       * https://github.com/jquery/jquery-migrate
       * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors; Licensed MIT
       */
      Severity: Minor
      Found in app/assets/javascripts/jquery/jquery-migrate-1.1.1.js - About 4 hrs to fix

        File foundation.orbit.js has 369 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        ;(function ($, window, document, undefined) {
          'use strict';
        
          var noop = function() {};
        
        
        Severity: Minor
        Found in app/assets/javascripts/foundation/foundation.orbit.js - About 4 hrs to fix

          Function events has 114 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              events : function () {
                var self = this;
                $(this.scope)
                  .off('.fndtn.topbar')
                  .on('click.fndtn.topbar', '.top-bar .toggle-topbar, [data-topbar] .toggle-topbar', function (e) {
          Severity: Major
          Found in app/assets/javascripts/foundation/foundation.topbar.js - About 4 hrs to fix

            Function _init has 111 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    _init: function() {
            
                        var wizard = this;
                        var formOptionsSuccess = this.options.formOptions.success;
                        var formOptionsComplete = this.options.formOptions.complete;
            Severity: Major
            Found in app/assets/javascripts/jqwizard/jquery.form.wizard.js - About 4 hrs to fix

              Function resize has 107 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  resize: function(sections, ensure_has_active_region) {
              
                    var self = Foundation.libs.section,
                        section_container = $(self.settings.section_selector),
                        is_small_window = self.small(section_container),
              Severity: Major
              Found in app/assets/javascripts/foundation/foundation.section.js - About 4 hrs to fix

                Function shift has 104 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    shift: function (direction) {
                      var slideDirection = direction;
                
                      //remember previous activeSlide
                      this.prevActiveSlide = this.activeSlide;
                Severity: Major
                Found in app/assets/javascripts/admin/jquery.orbit-1.4.0.js - About 4 hrs to fix

                  File foundation.js has 337 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  /*
                   * Foundation Responsive Library
                   * http://foundation.zurb.com
                   * Copyright 2013, ZURB
                   * Free to use under the MIT license.
                  Severity: Minor
                  Found in app/assets/javascripts/foundation_init/foundation.js - About 4 hrs to fix

                    File order.rb has 324 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    class Order < ApplicationRecord
                      include AASM
                      extend FriendlyId
                      friendly_id :number
                      include Presentation::OrderPresenter
                    Severity: Minor
                    Found in app/models/order.rb - About 3 hrs to fix

                      Function _renderCalendar has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                  _renderCalendar : function()
                                  {
                                      // set the title...
                                      $('h2', this.context).html(Date.monthNames[this.displayedMonth] + ' ' + this.displayedYear);
                                      
                      Severity: Major
                      Found in app/assets/javascripts/jquery.datePicker-2.1.2.js - About 3 hrs to fix

                        File foundation.section.js has 322 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        /*jslint unparam: true, browser: true, indent: 2 */
                        
                        ;
                        (function($, window, document) {
                          'use strict';
                        Severity: Minor
                        Found in app/assets/javascripts/foundation/foundation.section.js - About 3 hrs to fix

                          Class Product has 29 methods (exceeds 20 allowed). Consider refactoring.
                          Open

                          class Product < ApplicationRecord
                            extend FriendlyId
                            friendly_id :permalink, use: :finders
                            include Presentation::ProductPresenter
                            include ProductFilters
                          Severity: Minor
                          Found in app/models/product.rb - About 3 hrs to fix

                            Consider simplifying this complex logical expression.
                            Open

                                if (successful && (!n || el.disabled || t == 'reset' || t == 'button' ||
                                    (t == 'checkbox' || t == 'radio') && !el.checked ||
                                    (t == 'submit' || t == 'image') && el.form && el.form.clk != el ||
                                    tag == 'select' && el.selectedIndex == -1))
                                        return null;
                            Severity: Critical
                            Found in app/assets/javascripts/jqwizard/jquery.form.js - About 3 hrs to fix

                              Class User has 27 methods (exceeds 20 allowed). Consider refactoring.
                              Open

                              class User < ApplicationRecord
                                include AASM
                                include TransactionAccountable
                                include UserCim
                                include Presentation::UserPresenter
                              Severity: Minor
                              Found in app/models/user.rb - About 3 hrs to fix

                                Class Variant has 27 methods (exceeds 20 allowed). Consider refactoring.
                                Open

                                class Variant < ApplicationRecord
                                
                                  has_many :variant_suppliers
                                  has_many :suppliers,         through: :variant_suppliers
                                
                                
                                Severity: Minor
                                Found in app/models/variant.rb - About 3 hrs to fix

                                  Function renderCalendar has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                          renderCalendar  :   function(s)
                                          {
                                              var dc = function(a)
                                              {
                                                  return document.createElement(a);
                                  Severity: Major
                                  Found in app/assets/javascripts/jquery.datePicker-2.1.2.js - About 3 hrs to fix

                                    File foundation.topbar.js has 292 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open

                                    /*jslint unparam: true, browser: true, indent: 2 */
                                    
                                    ;(function ($, window, document, undefined) {
                                      'use strict';
                                    
                                    
                                    Severity: Minor
                                    Found in app/assets/javascripts/foundation/foundation.topbar.js - About 3 hrs to fix

                                      Function markup has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                            function markup(button) {
                                              var len, j, n, i;
                                              hash = clicked = button;
                                              get();
                                              $.extend(hash, {  line:"",
                                      Severity: Major
                                      Found in app/assets/javascripts/markitup/jquery.markitup.js - About 2 hrs to fix

                                        File bbq.js has 287 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        /*!
                                         * jQuery BBQ: Back Button & Query Library - v1.2.1 - 2/17/2010
                                         * http://benalman.com/projects/jquery-bbq-plugin/
                                         * 
                                         * Copyright (c) 2010 "Cowboy" Ben Alman
                                        Severity: Minor
                                        Found in app/assets/javascripts/jqwizard/bbq.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language