fiedl/wingolfsplattform

View on GitHub
public/commander/foundation-5/js/foundation.min.js

Summary

Maintainability
F
1 yr
Test Coverage

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

/*
 * Foundation Responsive Library
 * http://foundation.zurb.com
 * Copyright 2014, ZURB
 * Free to use under the MIT license.
Severity: Major
Found in public/commander/foundation-5/js/foundation.min.js - About 2 wks to fix

    Function Orbit has 257 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      var Orbit = function (el, settings) {
        // Don't reinitialize plugin
        if (el.hasClass(settings.slides_container_class)) {
          return this;
        }
    Severity: Major
    Found in public/commander/foundation-5/js/foundation.min.js - About 1 day to fix

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

          events : function (bar) {
            var self = this,
                S = this.S;
      
            S(this.scope)
      Severity: Major
      Found in public/commander/foundation-5/js/foundation.min.js - About 4 hrs to fix

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

            events : function (scope) {
              var self = this,
                  S = self.S;
        
              S(this.scope)
        Severity: Major
        Found in public/commander/foundation-5/js/foundation.min.js - About 3 hrs to fix

          Function check_validation_and_apply_styles has 85 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              check_validation_and_apply_styles : function (el_patterns) {
                var i = el_patterns.length,
                    validations = [],
                    form = this.S(el_patterns[0][0]).closest('[data-' + this.attr_name(true) + ']'),
                    settings = form.data(this.attr_name(true) + '-init') || {};
          Severity: Major
          Found in public/commander/foundation-5/js/foundation.min.js - About 3 hrs to fix

            Function open has 82 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                open : function (target, ajax_settings) {
                  var self = this,
                      modal;
            
                  if (target) {
            Severity: Major
            Found in public/commander/foundation-5/js/foundation.min.js - About 3 hrs to fix

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

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

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

                    events : function () {
                      var self = this,
                          S = self.S,
                          move_class = '',
                          right_postfix = '',
                Severity: Major
                Found in public/commander/foundation-5/js/foundation.min.js - About 3 hrs to fix

                  Function toggle_active_tab has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      toggle_active_tab : function (tab, location_hash) {
                        var self = this,
                            S = self.S,
                            tabs = tab.closest('[' + this.attr_name() + ']'),
                            tab_link = tab.find('a'),
                  Severity: Major
                  Found in public/commander/foundation-5/js/foundation.min.js - About 3 hrs to fix

                    Function show has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        show : function (init, is_prev) {
                          var $timer = null;
                    
                          // are we paused?
                          if (this.settings.$li === undefined || ($.inArray(this.settings.$li.index(), this.settings.pause_after) === -1)) {
                    Severity: Major
                    Found in public/commander/foundation-5/js/foundation.min.js - About 2 hrs to fix

                      Function init has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          self.init = function () {
                            self.build_markup();
                            if (settings.timer) {
                              timer = self.create_timer();
                              Foundation.utils.image_loaded(this.slides().children('img'), timer.start);
                      Severity: Major
                      Found in public/commander/foundation-5/js/foundation.min.js - About 2 hrs to fix

                        Function pos_default has 60 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            pos_default : function (init) {
                              var $nub = this.settings.$next_tip.find('.joyride-nub'),
                                  nub_width = Math.ceil($nub.outerWidth() / 2),
                                  nub_height = Math.ceil($nub.outerHeight() / 2),
                                  toggle = init || false;
                        Severity: Major
                        Found in public/commander/foundation-5/js/foundation.min.js - About 2 hrs to fix

                          Function open has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              open : function ($image, current, target) {
                                var self = this,
                                    body = $(document.body),
                                    root = target.closest('.clearing-assembled'),
                                    container = self.S('div', root).first(),
                          Severity: Major
                          Found in public/commander/foundation-5/js/foundation.min.js - About 2 hrs to fix

                            Function toggle has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                toggle : function (toggleEl) {
                                  var self = this,
                                      topbar;
                            
                                  if (toggleEl) {
                            Severity: Major
                            Found in public/commander/foundation-5/js/foundation.min.js - About 2 hrs to fix

                              Function expose has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  expose : function () {
                                    var expose,
                                        exposeCover,
                                        el,
                                        origCSS,
                              Severity: Major
                              Found in public/commander/foundation-5/js/foundation.min.js - About 2 hrs to fix

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

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

                                  Function show has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      show : function (el, css) {
                                        // is modal
                                        if (css) {
                                          var settings = el.data(this.attr_name(true) + '-init') || this.settings,
                                              root_element = settings.root_element,
                                  Severity: Major
                                  Found in public/commander/foundation-5/js/foundation.min.js - About 2 hrs to fix

                                    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.min.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.min.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.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.min.js - 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 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 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 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 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.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.min.js - About 1 hr to fix

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

                                                                set_ui : function ($handle, value) {
                                                                  var settings = $.data($handle[0], 'settings'),
                                                                      handle_l = $.data($handle[0], 'handle_l'),
                                                                      bar_l = $.data($handle[0], 'bar_l'),
                                                                      norm_pct = this.normalized_percentage(value, settings.start, settings.end),
                                                            Severity: Minor
                                                            Found in public/commander/foundation-5/js/foundation.min.js - About 1 hr to fix

                                                              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

                                                                Function start has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                Open

                                                                    start : function () {
                                                                      var self = this,
                                                                          $this = $('[' + this.attr_name() + ']', this.scope),
                                                                          integer_settings = ['timer', 'scrollSpeed', 'startOffset', 'tipAnimationFadeSpeed', 'cookieExpires'],
                                                                          int_settings_count = integer_settings.length;
                                                                Severity: Minor
                                                                Found in public/commander/foundation-5/js/foundation.min.js - About 1 hr to fix

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

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

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

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

                                                                      Function _base has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                      Open

                                                                            _base : function (t) {
                                                                              var o_p = this.offsetParent(),
                                                                                  o = o_p.offset(),
                                                                                  p = t.offset();
                                                                      
                                                                      
                                                                      Severity: Minor
                                                                      Found in public/commander/foundation-5/js/foundation.min.js - About 1 hr to fix

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

                                                                            resize : function () {
                                                                              var self = this;
                                                                              self.S('[' + this.attr_name() + ']').each(function () {
                                                                                var topbar = self.S(this),
                                                                                    settings = topbar.data(self.attr_name(true) + '-init');
                                                                        Severity: Minor
                                                                        Found in public/commander/foundation-5/js/foundation.min.js - About 1 hr to fix

                                                                          Function adjust_pip has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                          Open

                                                                              adjust_pip : function (dropdown, target, settings, position) {
                                                                                var sheet = Foundation.stylesheet,
                                                                                    pip_offset_base = 8;
                                                                          
                                                                                if (dropdown.hasClass(settings.mega_class)) {
                                                                          Severity: Minor
                                                                          Found in public/commander/foundation-5/js/foundation.min.js - About 1 hr to fix

                                                                            Function build_markup has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                            Open

                                                                                self.build_markup = function () {
                                                                                  slides_container.wrap('<div class="' + settings.container_class + '"></div>');
                                                                                  container = slides_container.parent();
                                                                                  slides_container.addClass(settings.slides_container_class);
                                                                            
                                                                            
                                                                            Severity: Minor
                                                                            Found in public/commander/foundation-5/js/foundation.min.js - About 1 hr to fix

                                                                              Function init has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                              Open

                                                                                  init : function (section, method, options) {
                                                                                    Foundation.inherit(this, 'add_custom_rule register_media throttle');
                                                                                    var self = this;
                                                                              
                                                                                    self.register_media('topbar', 'foundation-mq-topbar');
                                                                              Severity: Minor
                                                                              Found in public/commander/foundation-5/js/foundation.min.js - About 1 hr to fix

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

                                                                                    shift : function (current, target, callback) {
                                                                                      var clearing = target.parent(),
                                                                                          old_index = this.settings.prev_index || target.index(),
                                                                                          direction = this.direction(clearing, current, target),
                                                                                          dir = this.rtl ? 'right' : 'left',
                                                                                Severity: Minor
                                                                                Found in public/commander/foundation-5/js/foundation.min.js - About 1 hr to fix

                                                                                  Function pos_phone has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                  Open

                                                                                      pos_phone : function (init) {
                                                                                        var tip_height = this.settings.$next_tip.outerHeight(),
                                                                                            tip_offset = this.settings.$next_tip.offset(),
                                                                                            target_height = this.settings.$target.outerHeight(),
                                                                                            $nub = $('.joyride-nub', this.settings.$next_tip),
                                                                                  Severity: Minor
                                                                                  Found in public/commander/foundation-5/js/foundation.min.js - About 1 hr to fix

                                                                                    Function interpret_keyup_action has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                    Open

                                                                                              interpret_keyup_action = function (e) {
                                                                                                // Light modification of Heydon Pickering's Practical ARIA Examples: http://heydonworks.com/practical_aria_examples/js/a11y.js
                                                                                    
                                                                                                // define current, previous and next (possible) tabs
                                                                                    
                                                                                    
                                                                                    Severity: Minor
                                                                                    Found in public/commander/foundation-5/js/foundation.min.js - About 1 hr to fix

                                                                                      Function valid_radio has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                      Open

                                                                                          valid_radio : function (el, required) {
                                                                                            var name = el.getAttribute('name'),
                                                                                                group = this.S(el).closest('[data-' + this.attr_name(true) + ']').find("[name='" + name + "']"),
                                                                                                count = group.length,
                                                                                                valid = false,
                                                                                      Severity: Minor
                                                                                      Found in public/commander/foundation-5/js/foundation.min.js - About 1 hr to fix

                                                                                        Function offsets has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                        Open

                                                                                            offsets : function (expedition, window_offset) {
                                                                                              var self = this,
                                                                                                  settings = expedition.data(self.attr_name(true) + '-init'),
                                                                                                  viewport_offset = window_offset;
                                                                                        
                                                                                        
                                                                                        Severity: Minor
                                                                                        Found in public/commander/foundation-5/js/foundation.min.js - About 1 hr to fix

                                                                                          Function handle_location_hash_change has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                          Open

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

                                                                                            Function matchMedia has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                            Open

                                                                                              window.matchMedia || (window.matchMedia = function() {
                                                                                                  "use strict";
                                                                                            
                                                                                                  // For browsers that support matchMedium api such as IE 9 and webkit
                                                                                                  var styleMedia = (window.styleMedia || window.media);
                                                                                            Severity: Minor
                                                                                            Found in public/commander/foundation-5/js/foundation.min.js - About 1 hr to fix

                                                                                              Function init has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  init : function (scope, libraries, method, options, response) {
                                                                                                    var args = [scope, method, options, response],
                                                                                                        responses = [];
                                                                                              
                                                                                                    // check RTL
                                                                                              Severity: Minor
                                                                                              Found in public/commander/foundation-5/js/foundation.min.js - About 1 hr to fix

                                                                                                Function assemble has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                Open

                                                                                                    assemble : function (topbar) {
                                                                                                      var self = this,
                                                                                                          settings = topbar.data(this.attr_name(true) + '-init'),
                                                                                                          section = self.S('section, .top-bar-section', topbar);
                                                                                                
                                                                                                
                                                                                                Severity: Minor
                                                                                                Found in public/commander/foundation-5/js/foundation.min.js - About 1 hr to fix

                                                                                                  Function css has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                  Open

                                                                                                      css : function (dropdown, target) {
                                                                                                        var left_offset = Math.max((target.width() - dropdown.width()) / 2, 8),
                                                                                                            settings = target.data(this.attr_name(true) + '-init') || this.settings,
                                                                                                            parentOverflow = dropdown.parent().css('overflow-y') || dropdown.parent().css('overflow');
                                                                                                  
                                                                                                  
                                                                                                  Severity: Minor
                                                                                                  Found in public/commander/foundation-5/js/foundation.min.js - About 1 hr to fix

                                                                                                    Avoid deeply nested control flow statements.
                                                                                                    Open

                                                                                                                if (this.settings.timer > 0) {
                                                                                                    
                                                                                                                  this.settings.$next_tip
                                                                                                                    .fadeIn(this.settings.tip_animation_fade_speed)
                                                                                                                    .show();
                                                                                                    Severity: Major
                                                                                                    Found in public/commander/foundation-5/js/foundation.min.js - About 45 mins to fix

                                                                                                      Avoid deeply nested control flow statements.
                                                                                                      Open

                                                                                                                  if (self.S(klass).hasClass('fixed')) {
                                                                                                                    self.S(klass).removeClass('fixed');
                                                                                                                    self.S('body').removeClass('f-topbar-fixed');
                                                                                                                  }
                                                                                                      Severity: Major
                                                                                                      Found in public/commander/foundation-5/js/foundation.min.js - About 45 mins to fix

                                                                                                        Function init has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                        Open

                                                                                                            init : function (scope, libraries, method, options, response) {
                                                                                                        Severity: Minor
                                                                                                        Found in public/commander/foundation-5/js/foundation.min.js - About 35 mins to fix

                                                                                                          Function normalized_value has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                          Open

                                                                                                              normalized_value : function (val, start, end, step, precision) {
                                                                                                          Severity: Minor
                                                                                                          Found in public/commander/foundation-5/js/foundation.min.js - About 35 mins to fix

                                                                                                            Avoid too many return statements within this function.
                                                                                                            Open

                                                                                                                  return el.show();
                                                                                                            Severity: Major
                                                                                                            Found in public/commander/foundation-5/js/foundation.min.js - About 30 mins to fix

                                                                                                              Avoid too many return statements within this function.
                                                                                                              Open

                                                                                                                    return false;
                                                                                                              Severity: Major
                                                                                                              Found in public/commander/foundation-5/js/foundation.min.js - About 30 mins to fix

                                                                                                                Avoid too many return statements within this function.
                                                                                                                Open

                                                                                                                      return el.hide();
                                                                                                                Severity: Major
                                                                                                                Found in public/commander/foundation-5/js/foundation.min.js - About 30 mins to fix

                                                                                                                  Avoid too many return statements within this function.
                                                                                                                  Open

                                                                                                                            return $.get(path, function (response) {
                                                                                                                              el.html(response);
                                                                                                                              el.data(self.data_attr + '-last-path', path);
                                                                                                                              trigger();
                                                                                                                            });
                                                                                                                  Severity: Major
                                                                                                                  Found in public/commander/foundation-5/js/foundation.min.js - About 30 mins to fix

                                                                                                                    Avoid too many return statements within this function.
                                                                                                                    Open

                                                                                                                           return false;
                                                                                                                    Severity: Major
                                                                                                                    Found in public/commander/foundation-5/js/foundation.min.js - About 30 mins to fix

                                                                                                                      Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      ;(function ($, window, document, undefined) {
                                                                                                                        'use strict';
                                                                                                                      
                                                                                                                        var Modernizr = Modernizr || false;
                                                                                                                      
                                                                                                                      
                                                                                                                      Severity: Major
                                                                                                                      Found in public/commander/foundation-5/js/foundation.min.js and 1 other location - About 2 mos to fix
                                                                                                                      public/commander/foundation-5/js/foundation/foundation.joyride.js on lines 1..932

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 9505.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      (function ($, window, document, undefined) {
                                                                                                                        'use strict';
                                                                                                                      
                                                                                                                        var header_helpers = function (class_array) {
                                                                                                                          var i = class_array.length;
                                                                                                                      Severity: Major
                                                                                                                      Found in public/commander/foundation-5/js/foundation.min.js and 1 other location - About 1 mo to fix
                                                                                                                      public/commander/foundation-5/js/foundation/foundation.js on lines 9..725

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 5073.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      ;(function ($, window, document, undefined) {
                                                                                                                        'use strict';
                                                                                                                      
                                                                                                                        Foundation.libs.clearing = {
                                                                                                                          name : 'clearing',
                                                                                                                      Severity: Major
                                                                                                                      Found in public/commander/foundation-5/js/foundation.min.js and 1 other location - About 1 mo to fix
                                                                                                                      public/commander/foundation-5/js/foundation/foundation.clearing.js on lines 1..586

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 5054.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      ;(function ($, window, document, undefined) {
                                                                                                                        'use strict';
                                                                                                                      
                                                                                                                        Foundation.libs.dropdown = {
                                                                                                                          name : 'dropdown',
                                                                                                                      Severity: Major
                                                                                                                      Found in public/commander/foundation-5/js/foundation.min.js and 1 other location - About 1 mo to fix
                                                                                                                      public/commander/foundation-5/js/foundation/foundation.dropdown.js on lines 1..463

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 5042.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      ;(function ($, window, document, undefined) {
                                                                                                                        'use strict';
                                                                                                                      
                                                                                                                        var noop = function () {};
                                                                                                                      
                                                                                                                      
                                                                                                                      Severity: Major
                                                                                                                      Found in public/commander/foundation-5/js/foundation.min.js and 1 other location - About 1 mo to fix
                                                                                                                      public/commander/foundation-5/js/foundation/foundation.orbit.js on lines 1..476

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 4800.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      ;(function ($, window, document, undefined) {
                                                                                                                        'use strict';
                                                                                                                      
                                                                                                                        Foundation.libs.topbar = {
                                                                                                                          name : 'topbar',
                                                                                                                      Severity: Major
                                                                                                                      Found in public/commander/foundation-5/js/foundation.min.js and 1 other location - About 1 mo to fix
                                                                                                                      public/commander/foundation-5/js/foundation/foundation.topbar.js on lines 1..458

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 4714.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      ;(function ($, window, document, undefined) {
                                                                                                                        'use strict';
                                                                                                                      
                                                                                                                        Foundation.libs.reveal = {
                                                                                                                          name : 'reveal',
                                                                                                                      Severity: Major
                                                                                                                      Found in public/commander/foundation-5/js/foundation.min.js and 1 other location - About 1 mo to fix
                                                                                                                      public/commander/foundation-5/js/foundation/foundation.reveal.js on lines 1..498

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 4555.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      ;(function ($, window, document, undefined) {
                                                                                                                        'use strict';
                                                                                                                      
                                                                                                                        Foundation.libs.abide = {
                                                                                                                          name : 'abide',
                                                                                                                      Severity: Major
                                                                                                                      Found in public/commander/foundation-5/js/foundation.min.js and 1 other location - About 3 wks to fix
                                                                                                                      public/commander/foundation-5/js/foundation/foundation.abide.js on lines 1..408

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 4041.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      ;(function ($, window, document, undefined) {
                                                                                                                        'use strict';
                                                                                                                      
                                                                                                                        Foundation.libs.tooltip = {
                                                                                                                          name : 'tooltip',
                                                                                                                      Severity: Major
                                                                                                                      Found in public/commander/foundation-5/js/foundation.min.js and 1 other location - About 3 wks to fix
                                                                                                                      public/commander/foundation-5/js/foundation/foundation.tooltip.js on lines 1..339

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 3507.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      ;(function ($, window, document, undefined) {
                                                                                                                        'use strict';
                                                                                                                      
                                                                                                                        Foundation.libs.slider = {
                                                                                                                          name : 'slider',
                                                                                                                      Severity: Major
                                                                                                                      Found in public/commander/foundation-5/js/foundation.min.js and 1 other location - About 2 wks to fix
                                                                                                                      public/commander/foundation-5/js/foundation/foundation.slider.js on lines 1..281

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 3052.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      ;(function ($, window, document, undefined) {
                                                                                                                        'use strict';
                                                                                                                      
                                                                                                                        Foundation.libs.interchange = {
                                                                                                                          name : 'interchange',
                                                                                                                      Severity: Major
                                                                                                                      Found in public/commander/foundation-5/js/foundation.min.js and 1 other location - About 2 wks to fix
                                                                                                                      public/commander/foundation-5/js/foundation/foundation.interchange.js on lines 1..359

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 2564.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      ;(function ($, window, document, undefined) {
                                                                                                                        'use strict';
                                                                                                                      
                                                                                                                        Foundation.libs.tab = {
                                                                                                                          name : 'tab',
                                                                                                                      Severity: Major
                                                                                                                      Found in public/commander/foundation-5/js/foundation.min.js and 1 other location - About 1 wk to fix
                                                                                                                      public/commander/foundation-5/js/foundation/foundation.tab.js on lines 1..249

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 2274.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      ;(function ($, window, document, undefined) {
                                                                                                                        'use strict';
                                                                                                                      
                                                                                                                        Foundation.libs['magellan-expedition'] = {
                                                                                                                          name : 'magellan-expedition',
                                                                                                                      Severity: Major
                                                                                                                      Found in public/commander/foundation-5/js/foundation.min.js and 1 other location - About 1 wk to fix
                                                                                                                      public/commander/foundation-5/js/foundation/foundation.magellan.js on lines 1..215

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 2154.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      ;(function ($, window, document, undefined) {
                                                                                                                        'use strict';
                                                                                                                      
                                                                                                                        Foundation.libs.offcanvas = {
                                                                                                                          name : 'offcanvas',
                                                                                                                      Severity: Major
                                                                                                                      Found in public/commander/foundation-5/js/foundation.min.js and 1 other location - About 1 wk to fix
                                                                                                                      public/commander/foundation-5/js/foundation/foundation.offcanvas.js on lines 1..152

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 1612.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      ;(function ($, window, document, undefined) {
                                                                                                                        'use strict';
                                                                                                                      
                                                                                                                        Foundation.libs.accordion = {
                                                                                                                          name : 'accordion',
                                                                                                                      Severity: Major
                                                                                                                      Found in public/commander/foundation-5/js/foundation.min.js and 1 other location - About 5 days to fix
                                                                                                                      public/commander/foundation-5/js/foundation/foundation.accordion.js on lines 1..88

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 994.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      ;(function ($, window, document, undefined) {
                                                                                                                        'use strict';
                                                                                                                      
                                                                                                                        Foundation.libs.equalizer = {
                                                                                                                          name : 'equalizer',
                                                                                                                      Severity: Major
                                                                                                                      Found in public/commander/foundation-5/js/foundation.min.js and 1 other location - About 5 days to fix
                                                                                                                      public/commander/foundation-5/js/foundation/foundation.equalizer.js on lines 1..104

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 952.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                                                      Open

                                                                                                                      ;(function ($, window, document, undefined) {
                                                                                                                        'use strict';
                                                                                                                      
                                                                                                                        Foundation.libs.alert = {
                                                                                                                          name : 'alert',
                                                                                                                      Severity: Major
                                                                                                                      Found in public/commander/foundation-5/js/foundation.min.js and 1 other location - About 2 days to fix
                                                                                                                      public/commander/foundation-5/js/foundation/foundation.alert.js on lines 1..43

                                                                                                                      Duplicated Code

                                                                                                                      Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                      Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                      When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                      Tuning

                                                                                                                      This issue has a mass of 376.

                                                                                                                      We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                                                      The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                                                      If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                                                      See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                                                      Refactorings

                                                                                                                      Further Reading

                                                                                                                      There are no issues that match your filters.

                                                                                                                      Category
                                                                                                                      Status