mattvanhorn/BJJLife

View on GitHub

Showing 102 of 102 total issues

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

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(!settings.modal)
                                    $.prettyPhoto.close();
    Severity: Major
    Found in app/assets/javascripts/jquery.prettyPhoto.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

        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

          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

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

                                  toInject = settings.iframe_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);
          Severity: Major
          Found in app/assets/javascripts/jquery.prettyPhoto.js and 2 other locations - About 40 mins to fix
          app/assets/javascripts/jquery.prettyPhoto.js on lines 313..313
          app/assets/javascripts/jquery.prettyPhoto.js on lines 325..325

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

          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 3 locations. Consider refactoring.
          Open

                                  toInject = settings.quicktime_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);
          Severity: Major
          Found in app/assets/javascripts/jquery.prettyPhoto.js and 2 other locations - About 40 mins to fix
          app/assets/javascripts/jquery.prettyPhoto.js on lines 291..291
          app/assets/javascripts/jquery.prettyPhoto.js on lines 325..325

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

          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 3 locations. Consider refactoring.
          Open

                                  toInject =  settings.flash_markup.replace(/{width}/g,pp_dimensions['width']).replace(/{height}/g,pp_dimensions['height']).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+'?'+flash_vars);
          Severity: Major
          Found in app/assets/javascripts/jquery.prettyPhoto.js and 2 other locations - About 40 mins to fix
          app/assets/javascripts/jquery.prettyPhoto.js on lines 291..291
          app/assets/javascripts/jquery.prettyPhoto.js on lines 313..313

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

          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(movie_width.indexOf('%') != -1) { movie_width = parseFloat(($(window).width() * parseFloat(movie_width) / 100) - 150); percentBased = true; }
          Severity: Minor
          Found in app/assets/javascripts/jquery.prettyPhoto.js and 1 other location - About 40 mins to fix
          app/assets/javascripts/jquery.prettyPhoto.js on lines 230..230

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

          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(movie_height.indexOf('%') != -1) { movie_height = parseFloat(($(window).height() * parseFloat(movie_height) / 100) - 150); percentBased = true; }
          Severity: Minor
          Found in app/assets/javascripts/jquery.prettyPhoto.js and 1 other location - About 40 mins to fix
          app/assets/javascripts/jquery.prettyPhoto.js on lines 231..231

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

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

              Method initialize has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                def initialize(street, unit, city, us_state, postal_code)
              Severity: Minor
              Found in app/models/address.rb - 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 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_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

                      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

                      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

                      Severity
                      Category
                      Status
                      Source
                      Language