mattvanhorn/BJJLife

View on GitHub

Showing 102 of 102 total issues

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

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

        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

                        $pp_pic_holder.find('.pp_play').unbind('click').removeClass('pp_play').addClass('pp_pause').click(function(){
                            $.prettyPhoto.stopSlideshow();
                            return false;
                        });
        Severity: Major
        Found in app/assets/javascripts/jquery.prettyPhoto.js and 1 other location - About 1 hr to fix
        app/assets/javascripts/jquery.prettyPhoto.js on lines 453..456

        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

                    $pp_pic_holder.find('.pp_pause').unbind('click').removeClass('pp_pause').addClass('pp_play').click(function(){
                        $.prettyPhoto.startSlideshow();
                        return false;
                    });
        Severity: Major
        Found in app/assets/javascripts/jquery.prettyPhoto.js and 1 other location - About 1 hr to fix
        app/assets/javascripts/jquery.prettyPhoto.js on lines 438..441

        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

        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 inWords has 32 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              inWords: function(distanceMillis) {
                var $l = this.settings.strings;
                var prefix = $l.prefixAgo;
                var suffix = $l.suffixAgo;
                if (this.settings.allowFuture) {
          Severity: Minor
          Found in app/assets/javascripts/jquery.timeago.js - About 1 hr to fix
            Severity
            Category
            Status
            Source
            Language