fiedl/wingolfsplattform

View on GitHub

Showing 180 of 222 total issues

Function reposition has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    reposition : function (target, tip, classes) {
      var width, nub, nubHeight, nubWidth, column, objPos;

      tip.css('visibility', 'hidden').show();

Severity: Major
Found in public/commander/foundation-5/js/foundation/foundation.tooltip.js - About 2 hrs to fix

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

        events : function (scope) {
          var self = this,
              form = self.S(scope).attr('novalidate', 'novalidate'),
              settings = form.data(this.attr_name(true) + '-init') || {};
    
    
    Severity: Major
    Found in public/commander/foundation-5/js/foundation/foundation.abide.js - About 2 hrs to fix

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

          events : function () {
            var self = this;
      
            $(this.scope)
              .off('.joyride')
      Severity: Major
      Found in public/commander/foundation-5/js/foundation/foundation.joyride.js - About 2 hrs to fix

        Function _goto has 50 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            self._goto = function (next_idx, start_timer) {
              // if (locked) {return false;}
              if (next_idx === idx) {return false;}
              if (typeof timer === 'object') {timer.restart();}
              var slides = self.slides();
        Severity: Minor
        Found in public/commander/foundation-5/js/foundation.min.js - About 2 hrs to fix

          Function _goto has 50 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              self._goto = function (next_idx, start_timer) {
                // if (locked) {return false;}
                if (next_idx === idx) {return false;}
                if (typeof timer === 'object') {timer.restart();}
                var slides = self.slides();
          Severity: Minor
          Found in public/commander/foundation-5/js/foundation/foundation.orbit.js - About 2 hrs to fix

            Consider simplifying this complex logical expression.
            Open

                if not read_only_mode?
                  can :update, Group do |group|
                    group.admins_of_self_and_ancestors.include?(user)
                  end
                  can :update, Corporation do |group|
            Severity: Critical
            Found in app/models/ability.rb - About 2 hrs to fix

              Function un_expose has 48 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  un_expose : function () {
                    var exposeId,
                        el,
                        expose,
                        origCSS,
              Severity: Minor
              Found in public/commander/foundation-5/js/foundation.min.js - About 1 hr to fix

                Function un_expose has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    un_expose : function () {
                      var exposeId,
                          el,
                          expose,
                          origCSS,
                Severity: Minor
                Found in public/commander/foundation-5/js/foundation/foundation.joyride.js - About 1 hr to fix

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

                      events : function () {
                        var self = this;
                  
                        $(this.scope)
                          .off('.slider')
                  Severity: Minor
                  Found in public/commander/foundation-5/js/foundation.min.js - About 1 hr to fix

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

                        events : function () {
                          var self = this;
                    
                          $(this.scope)
                            .off('.slider')
                    Severity: Minor
                    Found in public/commander/foundation-5/js/foundation/foundation.slider.js - About 1 hr to fix

                      Method create_template_profile_fields_where_non_existant has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        def create_template_profile_fields_where_non_existant
                          
                          if self.profile_fields.where(label: :personal_title).count == 0
                            self.profile_fields.create(label: :personal_title, type: "ProfileFieldTypes::General")
                          end
                      Severity: Minor
                      Found in lib/importers/models/user.rb - About 1 hr to fix

                        Function data_options has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                              data_options : function (el, data_attr_name) {
                                data_attr_name = data_attr_name || 'options';
                                var opts = {}, ii, p, opts_arr,
                                    data_options = function (el) {
                                      var namespace = Foundation.global.namespace;
                        Severity: Minor
                        Found in public/commander/foundation-5/js/foundation.min.js - About 1 hr to fix

                          Function data_options has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                data_options : function (el, data_attr_name) {
                                  data_attr_name = data_attr_name || 'options';
                                  var opts = {}, ii, p, opts_arr,
                                      data_options = function (el) {
                                        var namespace = Foundation.global.namespace;
                          Severity: Minor
                          Found in public/commander/foundation-5/js/foundation/foundation.js - About 1 hr to fix

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

                                swipe_events : function (scope) {
                                  var self = this,
                                  S = self.S;
                            
                                  S(this.scope)
                            Severity: Minor
                            Found in public/commander/foundation-5/js/foundation/foundation.clearing.js - About 1 hr to fix

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

                                  swipe_events : function (scope) {
                                    var self = this,
                                    S = self.S;
                              
                                    S(this.scope)
                              Severity: Minor
                              Found in public/commander/foundation-5/js/foundation.min.js - About 1 hr to fix

                                Function Timer has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  var Timer = function (el, settings, callback) {
                                    var self = this,
                                        duration = settings.timer_speed,
                                        progress = el.find('.' + settings.timer_progress_class),
                                        start,
                                Severity: Minor
                                Found in public/commander/foundation-5/js/foundation.min.js - About 1 hr to fix

                                  Function Timer has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    var Timer = function (el, settings, callback) {
                                      var self = this,
                                          duration = settings.timer_speed,
                                          progress = el.find('.' + settings.timer_progress_class),
                                          start,
                                  Severity: Minor
                                  Found in public/commander/foundation-5/js/foundation/foundation.orbit.js - About 1 hr to fix

                                    Method import has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      def import
                                        log.head "Wingolfsplattform User Import"
                                        
                                        log.section "Import Parameters"
                                        log.info "Import file:   #{@filename}"
                                    Severity: Minor
                                    Found in lib/importers/user_importer.rb - About 1 hr to fix

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

                                          events : function (instance) {
                                            var self = this;
                                            var S = this.S;
                                            self.create(this.S(instance));
                                      
                                      
                                      Severity: Minor
                                      Found in public/commander/foundation-5/js/foundation.min.js - About 1 hr to fix

                                        Function hide has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            hide : function (el, css) {
                                              // is modal
                                              if (css) {
                                                var settings = el.data(this.attr_name(true) + '-init'),
                                                    context = this;
                                        Severity: Minor
                                        Found in public/commander/foundation-5/js/foundation/foundation.reveal.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language