mattvanhorn/BJJLife

View on GitHub
app/assets/javascripts/jquery.carouFredSel-5.6.1.js

Summary

Maintainability
F
1 mo
Test Coverage

Function carouFredSel has 1576 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  $.fn.carouFredSel = function(options, configs) {
    if (this.length == 0) {
      debug(true, 'No element found for "'+this.selector+'".');
      return this;
    }
Severity: Major
Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js - About 1 wk to fix

    File jquery.carouFredSel-5.6.1.js has 2179 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*  
     *  jQuery carouFredSel 5.6.1
     *  Demo's and documentation:
     *  caroufredsel.frebsite.nl
     *  
    Severity: Major
    Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js - About 6 days to fix

      Function _cfs_bind_events has 1028 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          $cfs._cfs_bind_events = function() {
            $cfs._cfs_unbind_events();
      
            //  stop event
            $cfs.bind(cf_e('stop', conf), function(e, imm) {
      Severity: Major
      Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js - About 5 days to fix

        Function _cfs_init has 221 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            $cfs._cfs_init = function(o, setOrig, start) {
              o = go_getObject($tt0, o);
        
              var obs = ['items', 'scroll', 'auto', 'prev', 'next', 'pagination'];
              for (var a = 0, l = obs.length; a < l; a++) {
        Severity: Major
        Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js - About 1 day to fix

          Function _cfs_bind_buttons has 151 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              $cfs._cfs_bind_buttons = function() {
                $cfs._cfs_unbind_buttons();
                nv_showNavi(opts, itms.total, conf);
                nv_enableNavi(opts, itms.first, conf);
          
          
          Severity: Major
          Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js - About 6 hrs to fix

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

                    var a_complete = function() {
            
                      var overFill = opts.items.visible+nI-itms.total,
                        new_m = (opts.usePadding) ? opts.padding[opts.d[3]] : 0;
                      $cfs.css(opts.d['left'], new_m);
            Severity: Major
            Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js - About 2 hrs to fix

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

                      var a_complete = function() {
              
                        var overFill = opts.items.visible+nI-itms.total;
                        if (overFill > 0) {
                          $cfs.children().slice(itms.total).remove();
              Severity: Minor
              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js - About 1 hr to fix

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

                    $cfs._cfs_build = function() {
                      $cfs.data('cfs_isCarousel', true);
                
                      var orgCSS = {
                        'textAlign'    : $cfs.css('textAlign'),
                Severity: Minor
                Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js - About 1 hr to fix

                  Function cf_getAdjust has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    function cf_getAdjust(x, o, a, $t) {
                      var v = x;
                      if (typeof a == 'function') {
                        v = a.call($t, v);
                  
                  
                  Severity: Minor
                  Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js - About 1 hr to fix

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

                      function go_getNaviObject($tt, obj, type) {
                        if (typeof type != 'string') type = '';
                    
                        obj = go_getObject($tt, obj);
                        if (typeof obj == 'string') {
                    Severity: Minor
                    Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js - About 1 hr to fix

                      Function fx_uncover has 6 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                        function fx_uncover(sc, c1, c2, o, prev, n) {
                      Severity: Minor
                      Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                    if (typeof c !== 'boolean') c = true;
                        Severity: Major
                        Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                      if (c !== false) reInit = true;
                                      else eval('opts.'+a+' = b');
                          Severity: Major
                          Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js - About 45 mins to fix

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

                              function gn_getItemIndex(num, dev, org, items, $cfs) {
                            Severity: Minor
                            Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js - About 35 mins to fix

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

                                function fx_cover(sc, c1, c2, o, prev) {
                              Severity: Minor
                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js - About 35 mins to fix

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

                                  function gn_getItemsNextFilter(i, f, m, s, c) {
                                Severity: Minor
                                Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js - About 35 mins to fix

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

                                    function fx_fade(sO, c, x, d, f) {
                                  Severity: Minor
                                  Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js - About 35 mins to fix

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

                                      function cf_e(n, c, pf, ns, rd) {
                                    Severity: Minor
                                    Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js - About 35 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                return debug(conf, 'Callback "conditions" returned false.');
                                      Severity: Major
                                      Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                    return debug(conf, 'Carousel currently scrolling.');
                                        Severity: Major
                                        Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js - About 30 mins to fix

                                          Avoid too many return statements within this function.
                                          Open

                                              return -1;
                                          Severity: Major
                                          Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js - About 30 mins to fix

                                            Avoid too many return statements within this function.
                                            Open

                                                    return true;
                                            Severity: Major
                                            Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js - About 30 mins to fix

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

                                                        var fn = function() {
                                                          switch(sO.fx) {
                                                            case 'fade':
                                                            case 'crossfade':
                                                              $cfs.css('filter', '');
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 1 day to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 1226..1246

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

                                              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

                                                        var fn = function() {
                                                          switch(sO.fx) {
                                                            case 'fade':
                                                            case 'crossfade':
                                                              $cfs.css('filter', '');
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 1 day to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 905..925

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

                                              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

                                                    if (opts.next.button) {
                                                      opts.next.button.bind(cf_e(opts.next.event, conf, false), function(e) {
                                                        e.preventDefault();
                                                        $cfs.trigger(cf_e('next', conf));
                                                      });
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 1 day to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 1762..1772

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

                                              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

                                                    if (opts.prev.button) {
                                                      opts.prev.button.bind(cf_e(opts.prev.event, conf, false), function(e) {
                                                        e.preventDefault();
                                                        $cfs.trigger(cf_e('prev', conf));
                                                      });
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 1 day to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 1774..1784

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

                                              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

                                                      switch(sO.fx) {
                                                        case 'fade':
                                                          scrl.pre.anims.push([$cfs, { 'opacity': 0 }]);
                                                          break;
                                                        case 'crossfade':
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 7 hrs to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 1176..1191

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

                                              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

                                                      switch(sO.fx) {
                                                        case 'fade':
                                                          scrl.pre.anims.push([$cfs, { 'opacity': 0 }]);
                                                          break;
                                                        case 'crossfade':
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 7 hrs to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 863..878

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

                                              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

                                                      if (sO.fx == 'directscroll' && opts.items.visibleConf.old < nI) {
                                                        var hiddenitems = a_itm.slice(opts.items.visibleConf.old, nI),
                                                          orgW = opts.items[opts.d['width']];
                                                        hiddenitems.each(function() {
                                                          var hi = $(this);
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 4 hrs to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 748..758

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

                                              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

                                                      if (sO.fx == 'directscroll' && opts.items.visible < nI) {
                                                        var hiddenitems = a_itm.slice(opts.items.visibleConf.old, nI),
                                                          orgW = opts.items[opts.d['width']];
                                                        hiddenitems.each(function() {
                                                          var hi = $(this);
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 4 hrs to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 1057..1067

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

                                              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

                                                      if (opts.prev.mousewheel) {
                                                        if (!crsl.mousewheelPrev) {
                                                          crsl.mousewheelPrev = true;
                                                          $wrp.mousewheel(function(e, delta) { 
                                                            if (delta > 0) {
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 3 hrs to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 1798..1809

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

                                              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

                                                      if (opts.next.mousewheel) {
                                                        if (!crsl.mousewheelNext) {
                                                          crsl.mousewheelNext = true;
                                                          $wrp.mousewheel(function(e, delta) { 
                                                            if (delta < 0) {
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 3 hrs to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 1786..1797

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

                                              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

                                                        switch(sO.fx) {
                                                          case 'fade':
                                                            scrl.pre.anims.push([$cfs, { 'opacity': 1 }, fn]);
                                                            sc_startScroll(scrl.pre);
                                                            break;
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 3 hrs to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 926..938

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

                                              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

                                                        switch(sO.fx) {
                                                          case 'fade':
                                                            scrl.pre.anims.push([$cfs, { 'opacity': 1 }, fn]);
                                                            sc_startScroll(scrl.pre);
                                                            break;
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 3 hrs to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 1247..1259

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

                                              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

                                                         if (sO.fx == 'none')  a_dur = 0;
                                                      else if (a_dur == 'auto')  a_dur = opts.scroll.duration / opts.scroll.items * nI;
                                                      else if (a_dur <= 0)    a_dur = 0;
                                                      else if (a_dur < 10)    a_dur = i_siz / a_dur;
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 3 hrs to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 782..785

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

                                              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

                                                         if (sO.fx == 'none')  a_dur = 0;
                                                      else if (a_dur == 'auto')  a_dur = opts.scroll.duration / opts.scroll.items * nI;
                                                      else if (a_dur <= 0)    a_dur = 0;
                                                      else if (a_dur < 10)    a_dur = i_siz / a_dur;
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 3 hrs to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 1093..1096

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

                                              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

                                                      switch(sO.fx) {
                                                        case 'fade':
                                                        case 'crossfade':
                                                        case 'cover':
                                                        case 'uncover':
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 2 hrs to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 1145..1154

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

                                              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

                                                      switch(sO.fx) {
                                                        case 'fade':
                                                        case 'crossfade':
                                                        case 'cover':
                                                        case 'uncover':
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 2 hrs to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 834..843

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

                                              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

                                                    $cfs.bind(cf_e('prevPage', conf), function(e, obj, clb) {
                                                      e.stopPropagation();
                                                      var cur = $cfs.triggerHandler(cf_e('currentPage', conf));
                                                      return $cfs.triggerHandler(cf_e('slideToPage', conf), [cur-1, obj, 'prev', clb]);
                                                    });
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 2 hrs to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 1319..1323

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

                                              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

                                                    $cfs.bind(cf_e('nextPage', conf), function(e, obj, clb) {
                                                      e.stopPropagation();
                                                      var cur = $cfs.triggerHandler(cf_e('currentPage', conf));
                                                      return $cfs.triggerHandler(cf_e('slideToPage', conf), [cur+1, obj, 'next', clb]);
                                                    });
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 2 hrs to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 1312..1316

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

                                              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

                                                        if (l_cur.not(l_old).length) {
                                                          var a_old = {};
                                                            a_old[opts.d['marginRight']] = l_old.data('cfs_origCssMargin');
                                                          scrl.anims.push([l_old, a_old]);
                                                        }
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 1 hr to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 806..810

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

                                              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

                                                        if (l_new.not(l_old).length) {
                                                          var a_old = {};
                                                            a_old[opts.d['marginRight']] = l_old.data('cfs_origCssMargin');
                                                          scrl.anims.push([l_old, a_old]);
                                                        }
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 1 hr to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 1113..1117

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

                                              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

                                                      $cfs.children().each(function() {
                                                        var m = parseInt($(this).css(opts.d['marginRight']));
                                                        if (isNaN(m)) m = 0;
                                                        $(this).data('cfs_origCssMargin', m);
                                                      });
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 1 hr to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 1403..1407

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

                                              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

                                                        itm.each(function() {
                                                          var m = parseInt($(this).css(opts.d['marginRight']));
                                                          if (isNaN(m)) m = 0;
                                                          $(this).data('cfs_origCssMargin', m);
                                                        });
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 1 hr to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 392..396

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

                                              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

                                                      if (opts[opts.d['width']] == 'variable' || opts[opts.d['height']] == 'variable') {
                                                        scrl.anims.push([$wrp, w_siz]);
                                                      }
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 1 hr to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 1101..1103

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

                                              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

                                                      if (opts[opts.d['width']] == 'variable' || opts[opts.d['height']] == 'variable') {
                                                        scrl.anims.push([$wrp, w_siz]);
                                                      }
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 1 hr to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 790..792

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

                                              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

                                                      if (itms.total < opts.items.visible + nI) {
                                                        $cfs.children().slice(0, (opts.items.visible+nI)-itms.total).clone(true).appendTo($cfs);
                                                      }
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 1 hr to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 1034..1036

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

                                              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

                                                      if (itms.total < opts.items.visible+nI) {
                                                        $cfs.children().slice(0, (opts.items.visible+nI)-itms.total).clone(true).appendTo($cfs);
                                                      }
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 1 hr to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 724..726

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

                                              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

                                                      if (opts.align) {
                                                        opts.padding[opts.d[1]] = pR;
                                                        opts.padding[opts.d[3]] = pL;
                                                      }
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 1 hr to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 773..776

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

                                              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

                                                      if (opts.align) {
                                                        opts.padding[opts.d[1]] = pR;
                                                        opts.padding[opts.d[3]] = pL;
                                                      }
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 1 hr to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 1084..1087

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

                                              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

                                                        if (hiddenitems) {
                                                          hiddenitems.each(function() {
                                                            var hi = $(this);
                                                            if (!hi.data('isHidden')) hi.show();
                                                          });  
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 1 hr to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 1209..1214

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

                                              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

                                                        if (hiddenitems) {
                                                          hiddenitems.each(function() {
                                                            var hi = $(this);
                                                            if (!hi.data('isHidden')) hi.show();
                                                          });
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 1 hr to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 891..896

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

                                              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

                                                      if (!crsl.isPaused) {
                                                        if (opts.auto.button) {
                                                          opts.auto.button.addClass(cf_c('paused', conf));
                                                        }
                                                      }
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 1 hr to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 409..413

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

                                              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

                                                      if (!crsl.isStopped) {
                                                        if (opts.auto.button) {
                                                          opts.auto.button.addClass(cf_c('stopped', conf));
                                                        }
                                                      }
                                              Severity: Major
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 1 hr to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 455..459

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

                                              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

                                                    if (!opts.items[opts.d['height']]) {
                                                      opts.items[opts.d['height']] = (ms_hasVariableSizes(all_itm, opts, 'outerHeight')) 
                                                        ? 'variable' 
                                                        : all_itm[opts.d['outerHeight']](true);
                                                    }
                                              Severity: Minor
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 55 mins to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 150..154

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

                                              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

                                              } else {
                                                      opts.items[opts.d['width']] = (ms_hasVariableSizes(all_itm, opts, 'outerWidth')) 
                                                        ? 'variable' 
                                                        : all_itm[opts.d['outerWidth']](true);
                                              }
                                              Severity: Minor
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 55 mins to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 158..162

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

                                              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

                                                    if (opts[opts.d['height']] == 'auto') {
                                                      opts[opts.d['height']] = ms_getTrueLargestSize(all_itm, opts, 'outerHeight');
                                                    }
                                              Severity: Minor
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 50 mins to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 129..131

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

                                              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

                                                    if (opts[opts.d['width']] == 'auto') {
                                                      opts[opts.d['width']] = ms_getTrueLargestSize(all_itm, opts, 'outerWidth');
                                                    }
                                              Severity: Minor
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 50 mins to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 139..141

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

                                              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

                                                        if (itms.first == opts.items.visible) {
                                                          if (opts.infinite) {
                                                            $cfs.trigger(cf_e('prev', conf), itms.total-1);
                                                          }
                                                          return e.stopImmediatePropagation();
                                              Severity: Minor
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 45 mins to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 657..662

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

                                              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

                                                        if (itms.first == 0) {
                                                          if (opts.infinite) {
                                                            $cfs.trigger(cf_e('next', conf), itms.total-1);
                                                          }
                                                          return e.stopImmediatePropagation();
                                              Severity: Minor
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 45 mins to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 960..965

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

                                              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

                                                      var i_siz = ms_getTotalSize(a_itm.slice(0, nI), opts, 'width'),
                                                        w_siz = cf_mapWrapperSizes(ms_getSizes(c_new, opts, true), opts, !opts.usePadding);
                                              Severity: Minor
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 35 mins to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 761..762

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

                                              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

                                                          opts[opts.d['width']] = opts.items.visible * opts.items[opts.d['width']];
                                              Severity: Minor
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 35 mins to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 197..197

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

                                              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

                                                        opts[opts.d['width']] = opts.items.visible * opts.items[opts.d['width']];
                                              Severity: Minor
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 35 mins to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 183..183

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

                                              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

                                                      var i_siz = ms_getTotalSize(a_itm.slice(0, nI), opts, 'width'),
                                                        w_siz = cf_mapWrapperSizes(ms_getSizes(c_new, opts, true), opts, !opts.usePadding);
                                              Severity: Minor
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 35 mins to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 1070..1071

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

                                              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

                                                        if (k == opts.prev.key) {
                                                          e.preventDefault();
                                                          $cfs.trigger(cf_e('prev', conf));
                                                        }
                                              Severity: Minor
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 30 mins to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 1847..1850

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

                                              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

                                                      switch(sO.fx) {
                                                        case 'crossfade':
                                                        case 'cover':
                                                        case 'uncover':
                                                          var $cf2 = $cfs.clone().appendTo($wrp);
                                              Severity: Minor
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 30 mins to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 846..852

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

                                              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

                                                if (!opts.items.visibleConf.max) opts.items.visibleConf.max = opts.items.visible;
                                              Severity: Minor
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 30 mins to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 232..232

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

                                              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

                                                        if (k == opts.next.key)  {
                                                          e.preventDefault();
                                                          $cfs.trigger(cf_e('next', conf));
                                                        }
                                              Severity: Minor
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 30 mins to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 1851..1854

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

                                              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

                                                if (!opts.items.visibleConf.min) opts.items.visibleConf.min = opts.items.visible;
                                              Severity: Minor
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 30 mins to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 233..233

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

                                              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

                                                      switch(sO.fx) {
                                                        case 'crossfade':
                                                        case 'cover':
                                                        case 'uncover':
                                                          var $cf2 = $cfs.clone().appendTo($wrp);
                                              Severity: Minor
                                              Found in app/assets/javascripts/jquery.carouFredSel-5.6.1.js and 1 other location - About 30 mins to fix
                                              app/assets/javascripts/jquery.carouFredSel-5.6.1.js on lines 1157..1163

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

                                              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