ampache/ampache

View on GitHub
public/lib/modules/rhinoslider/js/rhinoslider-1.05.js

Summary

Maintainability
F
1 wk
Test Coverage

Function rhinoSlider has 519 lines of code (exceeds 200 allowed). Consider refactoring.
Open

    var rhinoSlider = function (element, opts) {
        var
            settings = $.extend({}, $.fn.rhinoslider.defaults, opts),
            $slider = $(element),
            effects = $.fn.rhinoslider.effects,
Severity: Major
Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js - About 1 day to fix

    File rhinoslider-1.05.js has 681 lines of code (exceeds 500 allowed). Consider refactoring.
    Open

    /**
      * Rhinoslider 1.05
      * http://rhinoslider.com/
      *
      * Copyright 2014: Sebastian Pontow, Rene Maas (http://renemaas.de/)
    Severity: Major
    Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js - About 6 hrs to fix

      Function init has 265 lines of code (exceeds 200 allowed). Consider refactoring.
      Open

                  init = function ($slider, settings, vars) {
                      settings = setUpSettings(settings);
      
                      $slider.wrap("<div class=\"" + vars.prefix + "container\">");
                      vars.container = $slider.parent("." + vars.prefix + "container");
      Severity: Major
      Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js - About 3 hrs to fix

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

                kick(none, currentTime, startValue, endValue, totalTime) {
        Severity: Minor
        Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js - About 35 mins to fix

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

                  out(none, currentTime, startValue, endValue, totalTime) {
          Severity: Minor
          Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js - About 35 mins to fix

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

                    shuffle(none, currentTime, startValue, endValue, totalTime) {
            Severity: Minor
            Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js - About 35 mins to fix

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

                                  setTimeout(function () {
                                      if (settings.showBullets !== "never" && settings.changeBullets === "after") {
                                          vars.navigation.find("." + vars.prefix + "active-bullet").removeClass(vars.prefix + "active-bullet");
                                          vars.navigation.find("#" + vars.next.attr("id") + "-bullet").addClass(vars.prefix + "active-bullet");
                                      }
              Severity: Major
              Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js and 1 other location - About 5 hrs to fix
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 491..497

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

              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

                                  setTimeout(function () {
                                      if (settings.showBullets !== "never" && settings.changeBullets === "after") {
                                          vars.navigation.find("." + vars.prefix + "active-bullet").removeClass(vars.prefix + "active-bullet");
                                          vars.navigation.find("#" + vars.next.attr("id") + "-bullet").addClass(vars.prefix + "active-bullet");
                                      }
              Severity: Major
              Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js and 1 other location - About 5 hrs to fix
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 558..564

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

              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 (!$next) {
                                  if (settings.randomOrder) {
                                      var nextID = getRandom(vars);
                                      vars.next = vars.container.find("#" + nextID);
                                  } else {
              Severity: Major
              Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js and 1 other location - About 4 hrs to fix
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 454..463

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 123.

              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 (!$next) {
                                  if (settings.randomOrder) {
                                      var nextID = getRandom(vars);
                                      vars.next = vars.container.find("#" + nextID);
                                  } else {
              Severity: Major
              Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js and 1 other location - About 4 hrs to fix
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 520..529

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

              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

                      shuffle(none, currentTime, startValue, endValue, totalTime) {
                          if ((currentTime /= totalTime / 2) < 1) {
                              return endValue / 2 * currentTime * currentTime * currentTime * currentTime * currentTime + startValue;
                          }
                          return endValue / 2 * ((currentTime -= 2) * currentTime * currentTime * currentTime * currentTime + 2) + startValue;
              Severity: Major
              Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js and 1 other location - About 3 hrs to fix
              public/lib/modules/rhinoslider/js/easing.js on lines 88..93

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

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

                                          if (settings.controlsPlayPause) {
                                              vars.buttons.play.text(settings.playText).removeClass(vars.prefix + "pause").addClass(vars.prefix + "play");
                                          }
              Severity: Major
              Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js and 3 other locations - About 1 hr to fix
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 305..307
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 419..421
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 433..435

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

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

                              if (settings.controlsPlayPause) {
                                  vars.buttons.play.text(settings.pauseText).removeClass(vars.prefix + "play").addClass(vars.prefix + "pause");
                              }
              Severity: Major
              Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js and 3 other locations - About 1 hr to fix
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 295..297
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 305..307
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 419..421

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

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

                              if (settings.controlsPlayPause) {
                                  vars.buttons.play.text(settings.playText).removeClass(vars.prefix + "pause").addClass(vars.prefix + "play");
                              }
              Severity: Major
              Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js and 3 other locations - About 1 hr to fix
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 295..297
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 305..307
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 433..435

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

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

                                          if (settings.controlsPlayPause) {
                                              vars.buttons.play.text(settings.pauseText).removeClass(vars.prefix + "play").addClass(vars.prefix + "pause");
                                          }
              Severity: Major
              Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js and 3 other locations - About 1 hr to fix
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 295..297
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 419..421
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 433..435

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

              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(isLast(vars.next)) {
                                          vars.buttons.next.addClass("disabled");
                                          pause();
                                      } else {
                                          vars.buttons.next.removeClass("disabled");
              Severity: Major
              Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js and 1 other location - About 1 hr to fix
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 634..639

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

              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(isLast(vars.next)) {
                                          vars.buttons.play.addClass("disabled");
                                          pause();
                                      } else {
                                          vars.buttons.play.removeClass("disabled");
              Severity: Major
              Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js and 1 other location - About 1 hr to fix
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 626..631

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

              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 (settings.showCaptions !== "never") {
                                  $("." + vars.prefix + "caption").stop(true, true).fadeOut(settings.captionsFadeTime);
                              }
              Severity: Major
              Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js and 1 other location - About 1 hr to fix
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 470..472

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

              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 (settings.showCaptions !== "never") {
                                  $("." + vars.prefix + "caption").stop(true, true).fadeOut(settings.captionsFadeTime);
                              }
              Severity: Major
              Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js and 1 other location - About 1 hr to fix
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 536..538

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

              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 (settings.showCaptions !== "never") {
                                  vars.active.find("." + vars.prefix + "caption").stop(true, true).fadeTo(settings.captionsFadeTime, settings.captionsOpacity);
                              }
              Severity: Major
              Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js and 1 other location - About 1 hr to fix
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 265..267

              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

                                      vars.container.mouseenter(function () {
                                          vars.active.find("." + vars.prefix + "caption").stop(true, true).fadeTo(settings.captionFadeTime, settings.captionsOpacity);
                                      }).mouseleave(function () {
              Severity: Major
              Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js and 1 other location - About 1 hr to fix
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 653..655

              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

                                  vars.buttons.prev.click(function () {
                                      prev($slider, settings);
              
                                      //stop autoplay, if set
                                      if (settings.autoPlay) {
              Severity: Minor
              Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js and 1 other location - About 50 mins to fix
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 105..112

              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

                                  vars.buttons.next.click(function () {
                                      next($slider, settings);
              
                                      //stop autoplay, if set
                                      if (settings.autoPlay) {
              Severity: Minor
              Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js and 1 other location - About 50 mins to fix
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 95..102

              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 ((currentTime /= totalTime / 2) < 1) {
                              return endValue / 2 * Math.pow(2, 10 * (currentTime - 1)) + startValue;
                          }
              Severity: Minor
              Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js and 1 other location - About 50 mins to fix
              public/lib/modules/rhinoslider/js/easing.js on lines 113..113

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

              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

                                  buttons = "<a class=\"" + vars.prefix + "prev " + vars.prefix + "btn\">" + settings.prevText + "</a><a class=\"" + vars.prefix + "next " + vars.prefix + "btn\">" + settings.nextText + "</a>";
              Severity: Major
              Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js and 2 other locations - About 40 mins to fix
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 118..118
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 118..118

              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

                                  buttons = settings.autoPlay ? "<a class=\"" + vars.prefix + "toggle " + vars.prefix + "pause " + vars.prefix + "btn\">" + settings.pauseText + "</a>" : "<a class=\"" + vars.prefix + "toggle " + vars.prefix + "play " + vars.prefix + "btn\">" + settings.playText + "</a>";
              Severity: Major
              Found in public/lib/modules/rhinoslider/js/rhinoslider-1.05.js and 2 other locations - About 40 mins to fix
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 88..88
              public/lib/modules/rhinoslider/js/rhinoslider-1.05.js on lines 118..118

              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

              There are no issues that match your filters.

              Category
              Status