KarrLab/test_history_server

View on GitHub
public/static/js/foundation.min.js

Summary

Maintainability
F
1 yr
Test Coverage

File foundation.min.js has 4732 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/static/js/foundation.min.js - About 1 wk 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/static/js/foundation.min.js - About 1 day to fix

      Function events has 109 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/static/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/static/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/static/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/static/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/static/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/static/js/foundation.min.js - About 2 hrs to fix

                  Function open has 69 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/static/js/foundation.min.js - About 2 hrs to fix

                    Function check_validation_and_apply_styles has 66 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/static/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/static/js/foundation.min.js - About 2 hrs to fix

                        Function events has 56 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/static/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/static/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/static/js/foundation.min.js - About 2 hrs to fix

                              Function events has 53 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/static/js/foundation.min.js - About 2 hrs to fix

                                Function show has 52 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/static/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/static/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/static/js/foundation.min.js - About 2 hrs to fix

                                      Function reposition has 49 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: Minor
                                      Found in public/static/js/foundation.min.js - About 1 hr to fix

                                        Function open has 48 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: Minor
                                        Found in public/static/js/foundation.min.js - About 1 hr to fix

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

                                              un_expose : function () {
                                                var exposeId,
                                                    el,
                                                    expose,
                                                    origCSS,
                                          Severity: Minor
                                          Found in public/static/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/static/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/static/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/static/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/static/js/foundation.min.js - About 1 hr to fix

                                                    Function hide has 39 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');
                                                            settings = settings || this.settings;
                                                    Severity: Minor
                                                    Found in public/static/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/static/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/static/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;
                                                                var S = this.S;
                                                                S(this.scope)
                                                                .off('.fndtn.accordion')
                                                          Severity: Minor
                                                          Found in public/static/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;
                                                            
                                                                  $(this.scope)
                                                                    .off('.slider')
                                                            Severity: Minor
                                                            Found in public/static/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/static/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/static/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/static/js/foundation.min.js - About 1 hr to fix

                                                                    Function events has 32 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/static/js/foundation.min.js - About 1 hr to fix

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

                                                                          equalize : function (equalizer) {
                                                                            var isStacked = false,
                                                                                vals = equalizer.find('[' + this.attr_name() + '-watch]:visible'),
                                                                                settings = equalizer.data(this.attr_name(true) + '-init');
                                                                      
                                                                      
                                                                      Severity: Minor
                                                                      Found in public/static/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/static/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/static/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/static/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/static/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/static/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/static/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/static/js/foundation.min.js - About 1 hr to fix

                                                                                      Function events has 28 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: Minor
                                                                                      Found in public/static/js/foundation.min.js - About 1 hr to fix

                                                                                        Function valid_radio has 27 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/static/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/static/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/static/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/static/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/static/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/static/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/static/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/static/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/static/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/static/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/static/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/static/js/foundation.min.js - About 30 mins to fix

                                                                                                                Avoid too many return statements within this function.
                                                                                                                Open

                                                                                                                        return true;
                                                                                                                Severity: Major
                                                                                                                Found in public/static/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/static/js/foundation.min.js and 1 other location - About 2 mos to fix
                                                                                                                  public/static/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

                                                                                                                  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/static/js/foundation.min.js and 1 other location - About 1 mo to fix
                                                                                                                  public/static/js/foundation/foundation.dropdown.js on lines 1..448

                                                                                                                  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 4918.

                                                                                                                  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/static/js/foundation.min.js and 1 other location - About 1 mo to fix
                                                                                                                  public/static/js/foundation/foundation.js on lines 9..703

                                                                                                                  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 4887.

                                                                                                                  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/static/js/foundation.min.js and 1 other location - About 1 mo to fix
                                                                                                                  public/static/js/foundation/foundation.clearing.js on lines 1..556

                                                                                                                  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 4829.

                                                                                                                  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/static/js/foundation.min.js and 1 other location - About 1 mo to fix
                                                                                                                  public/static/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/static/js/foundation.min.js and 1 other location - About 1 mo to fix
                                                                                                                  public/static/js/foundation/foundation.topbar.js on lines 1..452

                                                                                                                  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 4628.

                                                                                                                  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/static/js/foundation.min.js and 1 other location - About 3 wks to fix
                                                                                                                  public/static/js/foundation/foundation.reveal.js on lines 1..471

                                                                                                                  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 4441.

                                                                                                                  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/static/js/foundation.min.js and 1 other location - About 2 wks to fix
                                                                                                                  public/static/js/foundation/foundation.tooltip.js on lines 1..307

                                                                                                                  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 3344.

                                                                                                                  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/static/js/foundation.min.js and 1 other location - About 2 wks to fix
                                                                                                                  public/static/js/foundation/foundation.abide.js on lines 1..340

                                                                                                                  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 3303.

                                                                                                                  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/static/js/foundation.min.js and 1 other location - About 2 wks to fix
                                                                                                                  public/static/js/foundation/foundation.slider.js on lines 1..263

                                                                                                                  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 2876.

                                                                                                                  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/static/js/foundation.min.js and 1 other location - About 2 wks to fix
                                                                                                                  public/static/js/foundation/foundation.interchange.js on lines 1..354

                                                                                                                  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 2559.

                                                                                                                  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/static/js/foundation.min.js and 1 other location - About 1 wk to fix
                                                                                                                  public/static/js/foundation/foundation.tab.js on lines 1..237

                                                                                                                  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 2203.

                                                                                                                  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/static/js/foundation.min.js and 1 other location - About 1 wk to fix
                                                                                                                  public/static/js/foundation/foundation.magellan.js on lines 1..203

                                                                                                                  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 2027.

                                                                                                                  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/static/js/foundation.min.js and 1 other location - About 1 wk to fix
                                                                                                                  public/static/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 1628.

                                                                                                                  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/static/js/foundation.min.js and 1 other location - About 4 days to fix
                                                                                                                  public/static/js/foundation/foundation.accordion.js on lines 1..67

                                                                                                                  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 698.

                                                                                                                  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/static/js/foundation.min.js and 1 other location - About 4 days to fix
                                                                                                                  public/static/js/foundation/foundation.equalizer.js on lines 1..77

                                                                                                                  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 681.

                                                                                                                  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/static/js/foundation.min.js and 1 other location - About 2 days to fix
                                                                                                                  public/static/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 392.

                                                                                                                  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