pagseguro/magento2

View on GitHub
view/frontend/web/js/bootstrap.min.js

Summary

Maintainability
F
1 wk
Test Coverage

File bootstrap.min.js has 1669 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*!
 * Bootstrap v3.3.7 (http://getbootstrap.com)
 * Copyright 2011-2016 Twitter, Inc.
 * Licensed under the MIT license
 */
Severity: Major
Found in view/frontend/web/js/bootstrap.min.js - About 4 days to fix

    Function show has 63 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        (c.prototype.show = function() {
            var b = a.Event('show.bs.' + this.type);
            if (this.hasContent() && this.enabled) {
                this.$element.trigger(b);
                var d = a.contains(
    Severity: Major
    Found in view/frontend/web/js/bootstrap.min.js - About 2 hrs to fix

      Function init has 50 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          (c.prototype.init = function(b, c, d) {
              if (
                  ((this.enabled = !0),
                      (this.type = b),
                      (this.$element = a(c)),
      Severity: Minor
      Found in view/frontend/web/js/bootstrap.min.js - About 2 hrs to fix

        Function slide has 44 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            (c.prototype.slide = function(b, d) {
                var e = this.$element.find('.item.active'),
                    f = d || this.getItemForDirection(b, e),
                    g = this.interval,
                    h = 'next' === b ? 'left' : 'right',
        Severity: Minor
        Found in view/frontend/web/js/bootstrap.min.js - About 1 hr to fix

          Function backdrop has 42 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              (c.prototype.backdrop = function(b) {
                  var d = this,
                      e = this.$element.hasClass('fade') ? 'fade' : '';
                  if (this.isShown && this.options.backdrop) {
                      var f = a.support.transition && e;
          Severity: Minor
          Found in view/frontend/web/js/bootstrap.min.js - About 1 hr to fix

            Function show has 39 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                (d.prototype.show = function() {
                    if (!this.transitioning && !this.$element.hasClass('in')) {
                        var b,
                            e =
                            this.$parent &&
            Severity: Minor
            Found in view/frontend/web/js/bootstrap.min.js - About 1 hr to fix

              Function show has 39 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  (c.prototype.show = function(b) {
                      var d = this,
                          e = a.Event('show.bs.modal', { relatedTarget: b });
                      this.$element.trigger(e),
                          this.isShown ||
              Severity: Minor
              Found in view/frontend/web/js/bootstrap.min.js - About 1 hr to fix

                Function activate has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    (c.prototype.activate = function(b, d, e) {
                        function f() {
                            g
                                .removeClass('active')
                                .find('> .dropdown-menu > .active')
                Severity: Minor
                Found in view/frontend/web/js/bootstrap.min.js - About 1 hr to fix

                  Function applyPlacement has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      (c.prototype.applyPlacement = function(b, c) {
                          var d = this.tip(),
                              e = d[0].offsetWidth,
                              f = d[0].offsetHeight,
                              g = parseInt(d.css('margin-top'), 10),
                  Severity: Minor
                  Found in view/frontend/web/js/bootstrap.min.js - About 1 hr to fix

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

                        (b.prototype.refresh = function() {
                            var b = this,
                                c = 'offset',
                                d = 0;
                            (this.offsets = []),
                    Severity: Minor
                    Found in view/frontend/web/js/bootstrap.min.js - About 1 hr to fix

                      Consider simplifying this complex logical expression.
                      Open

                              if (this.hasContent() && this.enabled) {
                                  this.$element.trigger(b);
                                  var d = a.contains(
                                      this.$element[0].ownerDocument.documentElement,
                                      this.$element[0]
                      Severity: Major
                      Found in view/frontend/web/js/bootstrap.min.js - About 1 hr to fix

                        Consider simplifying this complex logical expression.
                        Open

                            if (
                                (b[0] < 2 && b[1] < 9) ||
                                (1 === b[0] && 9 === b[1] && b[2] < 1) ||
                                b[0] > 3
                            )
                        Severity: Major
                        Found in view/frontend/web/js/bootstrap.min.js - About 40 mins to fix

                          Consider simplifying this complex logical expression.
                          Open

                                          if (i.length) {
                                              var j = i.index(c.target);
                                              38 === c.which && j > 0 && j--,
                                                  40 === c.which && j < i.length - 1 && j++, ~j || (j = 0),
                                                  i.eq(j).trigger('focus');
                          Severity: Major
                          Found in view/frontend/web/js/bootstrap.min.js - About 40 mins to fix

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

                                function b(b) {
                                    return this.each(function() {
                                        var d = a(this),
                                            e = d.data('bs.tooltip'),
                                            f = 'object' === typeof b && b;
                            Severity: Major
                            Found in view/frontend/web/js/bootstrap.min.js and 1 other location - About 4 hrs to fix
                            view/frontend/web/js/bootstrap.min.js on lines 1322..1331

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

                            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

                                function b(b) {
                                    return this.each(function() {
                                        var d = a(this),
                                            e = d.data('bs.popover'),
                                            f = 'object' === typeof b && b;
                            Severity: Major
                            Found in view/frontend/web/js/bootstrap.min.js and 1 other location - About 4 hrs to fix
                            view/frontend/web/js/bootstrap.min.js on lines 898..907

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

                            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

                                        (clearTimeout(c.timeout),
                                            (c.hoverState = 'in'),
                                            c.options.delay && c.options.delay.show ?
                                            void(c.timeout = setTimeout(function() {
                                                'in' === c.hoverState && c.show();
                            Severity: Major
                            Found in view/frontend/web/js/bootstrap.min.js and 1 other location - About 3 hrs to fix
                            view/frontend/web/js/bootstrap.min.js on lines 1053..1060

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

                            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

                                            clearTimeout(c.timeout),
                                            (c.hoverState = 'out'),
                                            c.options.delay && c.options.delay.hide ?
                                            void(c.timeout = setTimeout(function() {
                                                'out' === c.hoverState && c.hide();
                            Severity: Major
                            Found in view/frontend/web/js/bootstrap.min.js and 1 other location - About 3 hrs to fix
                            view/frontend/web/js/bootstrap.min.js on lines 1023..1029

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

                            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

                                function b(b) {
                                    return this.each(function() {
                                        var d = a(this),
                                            e = d.data('bs.affix'),
                                            f = 'object' === typeof b && b;
                            Severity: Major
                            Found in view/frontend/web/js/bootstrap.min.js and 1 other location - About 3 hrs to fix
                            view/frontend/web/js/bootstrap.min.js on lines 1407..1415

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

                            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

                                function c(c) {
                                    return this.each(function() {
                                        var d = a(this),
                                            e = d.data('bs.scrollspy'),
                                            f = 'object' === typeof c && c;
                            Severity: Major
                            Found in view/frontend/web/js/bootstrap.min.js and 1 other location - About 3 hrs to fix
                            view/frontend/web/js/bootstrap.min.js on lines 1596..1604

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

                            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

                                function b(b) {
                                    return this.each(function() {
                                        var c = a(this),
                                            e = c.data('bs.alert');
                                        e || c.data('bs.alert', (e = new d(this))),
                            Severity: Major
                            Found in view/frontend/web/js/bootstrap.min.js and 1 other location - About 3 hrs to fix
                            view/frontend/web/js/bootstrap.min.js on lines 562..569

                            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

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

                                function d(b) {
                                    return this.each(function() {
                                        var c = a(this),
                                            d = c.data('bs.dropdown');
                                        d || c.data('bs.dropdown', (d = new g(this))),
                            Severity: Major
                            Found in view/frontend/web/js/bootstrap.min.js and 1 other location - About 3 hrs to fix
                            view/frontend/web/js/bootstrap.min.js on lines 60..67

                            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

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

                                (a.fn.tooltip = b),
                                (a.fn.tooltip.Constructor = c),
                                (a.fn.tooltip.noConflict = function() {
                                    return (a.fn.tooltip = d), this;
                                });
                            Severity: Major
                            Found in view/frontend/web/js/bootstrap.min.js and 3 other locations - About 1 hr to fix
                            view/frontend/web/js/bootstrap.min.js on lines 346..350
                            view/frontend/web/js/bootstrap.min.js on lines 1382..1386
                            view/frontend/web/js/bootstrap.min.js on lines 1582..1586

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

                            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

                                (a.fn.carousel = b),
                                (a.fn.carousel.Constructor = c),
                                (a.fn.carousel.noConflict = function() {
                                    return (a.fn.carousel = d), this;
                                });
                            Severity: Major
                            Found in view/frontend/web/js/bootstrap.min.js and 3 other locations - About 1 hr to fix
                            view/frontend/web/js/bootstrap.min.js on lines 1314..1318
                            view/frontend/web/js/bootstrap.min.js on lines 1382..1386
                            view/frontend/web/js/bootstrap.min.js on lines 1582..1586

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

                            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

                                (a.fn.tab = b),
                                (a.fn.tab.Constructor = c),
                                (a.fn.tab.noConflict = function() {
                                    return (a.fn.tab = d), this;
                                });
                            Severity: Major
                            Found in view/frontend/web/js/bootstrap.min.js and 3 other locations - About 1 hr to fix
                            view/frontend/web/js/bootstrap.min.js on lines 346..350
                            view/frontend/web/js/bootstrap.min.js on lines 1314..1318
                            view/frontend/web/js/bootstrap.min.js on lines 1382..1386

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

                            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

                                (a.fn.popover = b),
                                (a.fn.popover.Constructor = c),
                                (a.fn.popover.noConflict = function() {
                                    return (a.fn.popover = d), this;
                                });
                            Severity: Major
                            Found in view/frontend/web/js/bootstrap.min.js and 3 other locations - About 1 hr to fix
                            view/frontend/web/js/bootstrap.min.js on lines 346..350
                            view/frontend/web/js/bootstrap.min.js on lines 1314..1318
                            view/frontend/web/js/bootstrap.min.js on lines 1582..1586

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

                            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

                                a(window).on('load.bs.scrollspy.data-api', function() {
                                    a('[data-spy="scroll"]').each(function() {
                                        var b = a(this);
                                        c.call(b, b.data());
                                    });
                            Severity: Major
                            Found in view/frontend/web/js/bootstrap.min.js and 1 other location - About 1 hr to fix
                            view/frontend/web/js/bootstrap.min.js on lines 370..375

                            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

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

                                    a(window).on('load', function() {
                                        a('[data-ride="carousel"]').each(function() {
                                            var c = a(this);
                                            b.call(c, c.data());
                                        });
                            Severity: Major
                            Found in view/frontend/web/js/bootstrap.min.js and 1 other location - About 1 hr to fix
                            view/frontend/web/js/bootstrap.min.js on lines 1500..1505

                            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

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

                                        var c = a(this),
                                            e = c.data('bs.collapse'),
                                            f = a.extend({}, d.DEFAULTS, c.data(), 'object' === typeof b && b);
                            Severity: Major
                            Found in view/frontend/web/js/bootstrap.min.js and 1 other location - About 1 hr to fix
                            view/frontend/web/js/bootstrap.min.js on lines 650..652

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

                            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

                                        var e = a(this),
                                            f = e.data('bs.modal'),
                                            g = a.extend({}, c.DEFAULTS, e.data(), 'object' === typeof b && b);
                            Severity: Major
                            Found in view/frontend/web/js/bootstrap.min.js and 1 other location - About 1 hr to fix
                            view/frontend/web/js/bootstrap.min.js on lines 389..391

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

                            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

                                            c ||
                                            ((c = new this.constructor(
                                                    b.currentTarget,
                                                    this.getDelegateOptions()
                                                )),
                            Severity: Major
                            Found in view/frontend/web/js/bootstrap.min.js and 2 other locations - About 1 hr to fix
                            view/frontend/web/js/bootstrap.min.js on lines 1013..1018
                            view/frontend/web/js/bootstrap.min.js on lines 1043..1048

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

                                        c ||
                                        ((c = new this.constructor(
                                                b.currentTarget,
                                                this.getDelegateOptions()
                                            )),
                            Severity: Major
                            Found in view/frontend/web/js/bootstrap.min.js and 2 other locations - About 1 hr to fix
                            view/frontend/web/js/bootstrap.min.js on lines 1043..1048
                            view/frontend/web/js/bootstrap.min.js on lines 1288..1293

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

                                        (c ||
                                            ((c = new this.constructor(
                                                    b.currentTarget,
                                                    this.getDelegateOptions()
                                                )),
                            Severity: Major
                            Found in view/frontend/web/js/bootstrap.min.js and 2 other locations - About 1 hr to fix
                            view/frontend/web/js/bootstrap.min.js on lines 1013..1018
                            view/frontend/web/js/bootstrap.min.js on lines 1288..1293

                            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

                                (c.prototype.arrow = function() {
                                    return (this.$arrow = this.$arrow || this.tip().find('.arrow'));
                                });
                            Severity: Minor
                            Found in view/frontend/web/js/bootstrap.min.js and 1 other location - About 50 mins to fix
                            view/frontend/web/js/bootstrap.min.js on lines 1272..1274

                            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

                                (c.prototype.arrow = function() {
                                    return (this.$arrow = this.$arrow || this.tip().find('.tooltip-arrow'));
                                }),
                            Severity: Minor
                            Found in view/frontend/web/js/bootstrap.min.js and 1 other location - About 50 mins to fix
                            view/frontend/web/js/bootstrap.min.js on lines 1378..1380

                            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

                                            a.support.transition && f.hasClass('fade') ?
                                            f
                                            .one('bsTransitionEnd', d)
                                            .emulateTransitionEnd(c.TRANSITION_DURATION) :
                                            d(),
                            Severity: Minor
                            Found in view/frontend/web/js/bootstrap.min.js and 1 other location - About 50 mins to fix
                            view/frontend/web/js/bootstrap.min.js on lines 87..91

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

                                            a.support.transition && g.hasClass('fade') ?
                                            g
                                            .one('bsTransitionEnd', c)
                                            .emulateTransitionEnd(d.TRANSITION_DURATION) :
                                            c());
                            Severity: Minor
                            Found in view/frontend/web/js/bootstrap.min.js and 1 other location - About 50 mins to fix
                            view/frontend/web/js/bootstrap.min.js on lines 1185..1189

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

                                        a.attr('data-content') ||
                                        ('function' === typeof b.content ? b.content.call(a[0]) : b.content)
                            Severity: Minor
                            Found in view/frontend/web/js/bootstrap.min.js and 1 other location - About 40 mins to fix
                            view/frontend/web/js/bootstrap.min.js on lines 1254..1255

                            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

                                        b.attr('data-original-title') ||
                                        ('function' === typeof c.title ? c.title.call(b[0]) : c.title));
                            Severity: Minor
                            Found in view/frontend/web/js/bootstrap.min.js and 1 other location - About 40 mins to fix
                            view/frontend/web/js/bootstrap.min.js on lines 1374..1375

                            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

                                                this.$element.on(
                                                    i + '.' + this.type,
                                                    this.options.selector,
                                                    a.proxy(this.leave, this)
                                                );
                            Severity: Minor
                            Found in view/frontend/web/js/bootstrap.min.js and 1 other location - About 40 mins to fix
                            view/frontend/web/js/bootstrap.min.js on lines 965..969

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

                            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

                                            this.$element.on(
                                                    h + '.' + this.type,
                                                    this.options.selector,
                                                    a.proxy(this.enter, this)
                                                ),
                            Severity: Minor
                            Found in view/frontend/web/js/bootstrap.min.js and 1 other location - About 40 mins to fix
                            view/frontend/web/js/bootstrap.min.js on lines 970..974

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

                            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 c =
                                        b instanceof this.constructor ?
                                        b :
                                        a(b.currentTarget).data('bs.' + this.type);
                            Severity: Minor
                            Found in view/frontend/web/js/bootstrap.min.js and 1 other location - About 30 mins to fix
                            view/frontend/web/js/bootstrap.min.js on lines 1038..1041

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 45.

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

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

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

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

                            Refactorings

                            Further Reading

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

                                    var c =
                                        b instanceof this.constructor ?
                                        b :
                                        a(b.currentTarget).data('bs.' + this.type);
                            Severity: Minor
                            Found in view/frontend/web/js/bootstrap.min.js and 1 other location - About 30 mins to fix
                            view/frontend/web/js/bootstrap.min.js on lines 1008..1011

                            Duplicated Code

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

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

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

                            Tuning

                            This issue has a mass of 45.

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

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

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

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

                            Refactorings

                            Further Reading

                            There are no issues that match your filters.

                            Category
                            Status