myems-admin/js/jquery/jquery.carousel.min.js

Summary

Maintainability
F
6 days
Test Coverage

Function ga has 466 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function ga(z, s) {
    function m() {
      u = j.length;
      p = v * 2 / u;
      for (var b = 0; b < u; b++) ha(b);
Severity: Major
Found in myems-admin/js/jquery/jquery.carousel.min.js - About 2 days to fix

    File jquery.carousel.min.js has 520 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    (function(c) {
      function ga(z, s) {
        function m() {
          u = j.length;
          p = v * 2 / u;
    Severity: Major
    Found in myems-admin/js/jquery/jquery.carousel.min.js - About 1 day to fix

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

          function ia() {
            function b() {
              n = k - h.offset().left - ea;
              d()
            }
      Severity: Major
      Found in myems-admin/js/jquery/jquery.carousel.min.js - About 2 hrs to fix

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

            function ha(b) {
              var d = c('<img class="carousel-item"/>').appendTo(i);
              Z.push(d);
              d.css({
                width: a.settings.itemWidth,
        Severity: Minor
        Found in myems-admin/js/jquery/jquery.carousel.min.js - About 1 hr to fix

          Function N has 37 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function N(b) {
                var d = j[b].path,
                  e = Z[b];
                c("<img/>").load(function() {
                  var h = parseInt(c(this).attr("width") || c(this).prop("width")),
          Severity: Minor
          Found in myems-admin/js/jquery/jquery.carousel.min.js - About 1 hr to fix

            Function X has 32 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function X() {
                  function b(f) {
                    T = f.pageX;
                    if (!I) {
                      E();
            Severity: Minor
            Found in myems-admin/js/jquery/jquery.carousel.min.js - About 1 hr to fix

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

                      if (k > i.offset().left && k < i.offset().left + a.settings.width && q > i.offset().top && q < i.offset().top + a.settings.height) {
                        T = da = f.pageX;
                        e = g;
                        c(document).bind("mousemove", b)
                      }
              Severity: Major
              Found in myems-admin/js/jquery/jquery.carousel.min.js and 1 other location - About 3 hrs to fix
              myems-admin/js/jquery/jquery.carousel.min.js on lines 178..187

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

              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 (k > i.offset().left && k < i.offset().left + a.settings.width &&
                        q > i.offset().top && q < i.offset().top + a.settings.height) {
                        b = d * (k - (i.offset().left + Q)) * (B / 1E3);
                        g += b;
                        o(g)
              Severity: Major
              Found in myems-admin/js/jquery/jquery.carousel.min.js and 1 other location - About 3 hrs to fix
              myems-admin/js/jquery/jquery.carousel.min.js on lines 216..220

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

              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

                      d.css({
                        left: k - i.offset().left + e,
                        top: q - i.offset().top +
                          h
                      });
              Severity: Major
              Found in myems-admin/js/jquery/jquery.carousel.min.js and 1 other location - About 1 hr to fix
              myems-admin/js/jquery/jquery.carousel.min.js on lines 375..378

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

              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

                        d.css({
                          left: k - i.offset().left + e,
                          top: q - i.offset().top + h
                        })
              Severity: Major
              Found in myems-admin/js/jquery/jquery.carousel.min.js and 1 other location - About 1 hr to fix
              myems-admin/js/jquery/jquery.carousel.min.js on lines 369..373

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

              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

                        left: Math.cos(-(p * d) + v * 0.5 + b * w) * a.settings.horizontalRadius + Q - h * 0.5 + h * (1 - r) / 2,
              Severity: Major
              Found in myems-admin/js/jquery/jquery.carousel.min.js and 1 other location - About 1 hr to fix
              myems-admin/js/jquery/jquery.carousel.min.js on lines 120..120

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

              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

                        D = Math.sin(-(p * d) + v * 0.5 + b * w) * a.settings.verticalRadius + P - f * 0.5,
              Severity: Major
              Found in myems-admin/js/jquery/jquery.carousel.min.js and 1 other location - About 1 hr to fix
              myems-admin/js/jquery/jquery.carousel.min.js on lines 125..125

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

              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

                    r.bind("click", function() {
                      n = parseInt(f.css("left")) + a.settings.arrowScrollAmount;
                      d()
                    })
              Severity: Minor
              Found in myems-admin/js/jquery/jquery.carousel.min.js and 1 other location - About 55 mins to fix
              myems-admin/js/jquery/jquery.carousel.min.js on lines 299..303

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 54.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

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

                    D.bind("click", function() {
                      n =
                        parseInt(f.css("left")) - a.settings.arrowScrollAmount;
                      d()
                    });
              Severity: Minor
              Found in myems-admin/js/jquery/jquery.carousel.min.js and 1 other location - About 55 mins to fix
              myems-admin/js/jquery/jquery.carousel.min.js on lines 304..307

              Duplicated Code

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

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

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

              Tuning

              This issue has a mass of 54.

              We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

              The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

              If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

              See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

              Refactorings

              Further Reading

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

                    if (!y) {
                      y = true;
                      c.isFunction(a.settings.scrollStart) && a.settings.scrollStart.call(this)
                    }
              Severity: Minor
              Found in myems-admin/js/jquery/jquery.carousel.min.js and 1 other location - About 45 mins to fix
              myems-admin/js/jquery/jquery.carousel.min.js on lines 332..336

              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 (y) {
                      y = false;
                      c.isFunction(a.settings.scrollComplete) &&
                        a.settings.scrollComplete.call(this)
                    }
              Severity: Minor
              Found in myems-admin/js/jquery/jquery.carousel.min.js and 1 other location - About 45 mins to fix
              myems-admin/js/jquery/jquery.carousel.min.js on lines 324..327

              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

              There are no issues that match your filters.

              Category
              Status