fiedl/wingolfsplattform

View on GitHub

Showing 222 of 222 total issues

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/foundation.slider.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.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.min.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/foundation.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.min.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 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 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

                      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

                        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 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.min.js - 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 events has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

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

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

                                    events : function (scope) {
                                      var self = this,
                                          S = self.S,
                                          $scroll_container = $('.scroll-container');
                                
                                
                                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

                                    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/foundation.accordion.js - About 1 hr to fix

                                      Method create_template_profile_fields_where_non_existant has a Cognitive Complexity of 13 (exceeds 5 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

                                      Cognitive Complexity

                                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                      A method's cognitive complexity is based on a few simple rules:

                                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                      • Code is considered more complex for each "break in the linear flow of the code"
                                      • Code is considered more complex when "flow breaking structures are nested"

                                      Further reading

                                      Function equalize has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          equalize : function (equalizer) {
                                            var isStacked = false,
                                                group = equalizer.data('equalizer'),
                                                settings = equalizer.data(this.attr_name(true)+'-init') || this.settings,
                                                vals,
                                      Severity: Minor
                                      Found in public/commander/foundation-5/js/foundation.min.js - About 1 hr to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language