olneyhymn/westminster-daily

View on GitHub

Showing 96 of 96 total issues

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

  var ClassName$2 = {
    CAROUSEL: 'carousel',
    ACTIVE: 'active',
    SLIDE: 'slide',
    RIGHT: 'carousel-item-right',
Severity: Minor
Found in static/js/bootstrap.js and 1 other location - About 55 mins to fix
static/js/bootstrap.js on lines 3492..3502

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

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

    _proto._getConfig = function _getConfig(config) {
      config = _objectSpread({}, Default, config);
      Util.typeCheckConfig(NAME$2, config, DefaultType);
      return config;
    };
Severity: Minor
Found in static/js/bootstrap.js and 1 other location - About 50 mins to fix
static/js/bootstrap.js on lines 2224..2228

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

    _proto._getConfig = function _getConfig(config) {
      config = _objectSpread({}, Default$3, config);
      Util.typeCheckConfig(NAME$5, config, DefaultType$3);
      return config;
    };
Severity: Minor
Found in static/js/bootstrap.js and 1 other location - About 50 mins to fix
static/js/bootstrap.js on lines 746..750

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

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

        if ('ontouchstart' in document.documentElement) {
          $(document.body).children().off('mouseover', null, $.noop);
        }
Severity: Minor
Found in static/js/bootstrap.js and 1 other location - About 45 mins to fix
static/js/bootstrap.js on lines 2917..2919

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

Avoid deeply nested control flow statements.
Open

              if (activeElement) {
                $(activeElement).removeClass(ClassName$1.ACTIVE);
              }
Severity: Major
Found in static/js/bootstrap.js - About 45 mins to fix

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

          if ('ontouchstart' in document.documentElement) {
            $(document.body).children().off('mouseover', null, $.noop);
          }
    Severity: Minor
    Found in static/js/bootstrap.js and 1 other location - About 45 mins to fix
    static/js/bootstrap.js on lines 1893..1895

    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

        _proto.addAttachmentClass = function addAttachmentClass(attachment) {
          $(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
        };
    Severity: Minor
    Found in static/js/bootstrap.js and 1 other location - About 40 mins to fix
    static/js/bootstrap.js on lines 3341..3343

    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

        _proto.addAttachmentClass = function addAttachmentClass(attachment) {
          $(this.getTipElement()).addClass(CLASS_PREFIX$1 + "-" + attachment);
        };
    Severity: Minor
    Found in static/js/bootstrap.js and 1 other location - About 40 mins to fix
    static/js/bootstrap.js on lines 2946..2948

    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

    Consider simplifying this complex logical expression.
    Open

            if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $.contains(parent, event.target)) {
              continue;
            }
    Severity: Major
    Found in static/js/bootstrap.js - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

          if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >= maxMajor) {
            throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0');
          }
      Severity: Major
      Found in static/js/bootstrap.js - About 40 mins to fix

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

          $.fn[NAME$1].noConflict = function () {
            $.fn[NAME$1] = JQUERY_NO_CONFLICT$1;
            return Button._jQueryInterface;
          };
        Severity: Major
        Found in static/js/bootstrap.js and 10 other locations - About 40 mins to fix
        static/js/bootstrap.js on lines 382..385
        static/js/bootstrap.js on lines 1134..1137
        static/js/bootstrap.js on lines 1494..1497
        static/js/bootstrap.js on lines 2016..2019
        static/js/bootstrap.js on lines 2592..2595
        static/js/bootstrap.js on lines 3268..3271
        static/js/bootstrap.js on lines 3455..3458
        static/js/bootstrap.js on lines 3762..3765
        static/js/bootstrap.js on lines 3994..3997
        static/js/bootstrap.js on lines 4204..4207

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

          $.fn[NAME$2].noConflict = function () {
            $.fn[NAME$2] = JQUERY_NO_CONFLICT$2;
            return Carousel._jQueryInterface;
          };
        Severity: Major
        Found in static/js/bootstrap.js and 10 other locations - About 40 mins to fix
        static/js/bootstrap.js on lines 382..385
        static/js/bootstrap.js on lines 536..539
        static/js/bootstrap.js on lines 1494..1497
        static/js/bootstrap.js on lines 2016..2019
        static/js/bootstrap.js on lines 2592..2595
        static/js/bootstrap.js on lines 3268..3271
        static/js/bootstrap.js on lines 3455..3458
        static/js/bootstrap.js on lines 3762..3765
        static/js/bootstrap.js on lines 3994..3997
        static/js/bootstrap.js on lines 4204..4207

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

          $.fn[NAME$3].noConflict = function () {
            $.fn[NAME$3] = JQUERY_NO_CONFLICT$3;
            return Collapse._jQueryInterface;
          };
        Severity: Major
        Found in static/js/bootstrap.js and 10 other locations - About 40 mins to fix
        static/js/bootstrap.js on lines 382..385
        static/js/bootstrap.js on lines 536..539
        static/js/bootstrap.js on lines 1134..1137
        static/js/bootstrap.js on lines 2016..2019
        static/js/bootstrap.js on lines 2592..2595
        static/js/bootstrap.js on lines 3268..3271
        static/js/bootstrap.js on lines 3455..3458
        static/js/bootstrap.js on lines 3762..3765
        static/js/bootstrap.js on lines 3994..3997
        static/js/bootstrap.js on lines 4204..4207

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

          $.fn[NAME$5].noConflict = function () {
            $.fn[NAME$5] = JQUERY_NO_CONFLICT$5;
            return Modal._jQueryInterface;
          };
        Severity: Major
        Found in static/js/bootstrap.js and 10 other locations - About 40 mins to fix
        static/js/bootstrap.js on lines 382..385
        static/js/bootstrap.js on lines 536..539
        static/js/bootstrap.js on lines 1134..1137
        static/js/bootstrap.js on lines 1494..1497
        static/js/bootstrap.js on lines 2016..2019
        static/js/bootstrap.js on lines 3268..3271
        static/js/bootstrap.js on lines 3455..3458
        static/js/bootstrap.js on lines 3762..3765
        static/js/bootstrap.js on lines 3994..3997
        static/js/bootstrap.js on lines 4204..4207

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

          $.fn[NAME$9].noConflict = function () {
            $.fn[NAME$9] = JQUERY_NO_CONFLICT$9;
            return Tab._jQueryInterface;
          };
        Severity: Major
        Found in static/js/bootstrap.js and 10 other locations - About 40 mins to fix
        static/js/bootstrap.js on lines 382..385
        static/js/bootstrap.js on lines 536..539
        static/js/bootstrap.js on lines 1134..1137
        static/js/bootstrap.js on lines 1494..1497
        static/js/bootstrap.js on lines 2016..2019
        static/js/bootstrap.js on lines 2592..2595
        static/js/bootstrap.js on lines 3268..3271
        static/js/bootstrap.js on lines 3455..3458
        static/js/bootstrap.js on lines 3762..3765
        static/js/bootstrap.js on lines 4204..4207

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

          $.fn[NAME].noConflict = function () {
            $.fn[NAME] = JQUERY_NO_CONFLICT;
            return Alert._jQueryInterface;
          };
        Severity: Major
        Found in static/js/bootstrap.js and 10 other locations - About 40 mins to fix
        static/js/bootstrap.js on lines 536..539
        static/js/bootstrap.js on lines 1134..1137
        static/js/bootstrap.js on lines 1494..1497
        static/js/bootstrap.js on lines 2016..2019
        static/js/bootstrap.js on lines 2592..2595
        static/js/bootstrap.js on lines 3268..3271
        static/js/bootstrap.js on lines 3455..3458
        static/js/bootstrap.js on lines 3762..3765
        static/js/bootstrap.js on lines 3994..3997
        static/js/bootstrap.js on lines 4204..4207

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

          $.fn[NAME$7].noConflict = function () {
            $.fn[NAME$7] = JQUERY_NO_CONFLICT$7;
            return Popover._jQueryInterface;
          };
        Severity: Major
        Found in static/js/bootstrap.js and 10 other locations - About 40 mins to fix
        static/js/bootstrap.js on lines 382..385
        static/js/bootstrap.js on lines 536..539
        static/js/bootstrap.js on lines 1134..1137
        static/js/bootstrap.js on lines 1494..1497
        static/js/bootstrap.js on lines 2016..2019
        static/js/bootstrap.js on lines 2592..2595
        static/js/bootstrap.js on lines 3268..3271
        static/js/bootstrap.js on lines 3762..3765
        static/js/bootstrap.js on lines 3994..3997
        static/js/bootstrap.js on lines 4204..4207

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

          $.fn[NAME$6].noConflict = function () {
            $.fn[NAME$6] = JQUERY_NO_CONFLICT$6;
            return Tooltip._jQueryInterface;
          };
        Severity: Major
        Found in static/js/bootstrap.js and 10 other locations - About 40 mins to fix
        static/js/bootstrap.js on lines 382..385
        static/js/bootstrap.js on lines 536..539
        static/js/bootstrap.js on lines 1134..1137
        static/js/bootstrap.js on lines 1494..1497
        static/js/bootstrap.js on lines 2016..2019
        static/js/bootstrap.js on lines 2592..2595
        static/js/bootstrap.js on lines 3455..3458
        static/js/bootstrap.js on lines 3762..3765
        static/js/bootstrap.js on lines 3994..3997
        static/js/bootstrap.js on lines 4204..4207

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

          $.fn[NAME$8].noConflict = function () {
            $.fn[NAME$8] = JQUERY_NO_CONFLICT$8;
            return ScrollSpy._jQueryInterface;
          };
        Severity: Major
        Found in static/js/bootstrap.js and 10 other locations - About 40 mins to fix
        static/js/bootstrap.js on lines 382..385
        static/js/bootstrap.js on lines 536..539
        static/js/bootstrap.js on lines 1134..1137
        static/js/bootstrap.js on lines 1494..1497
        static/js/bootstrap.js on lines 2016..2019
        static/js/bootstrap.js on lines 2592..2595
        static/js/bootstrap.js on lines 3268..3271
        static/js/bootstrap.js on lines 3455..3458
        static/js/bootstrap.js on lines 3994..3997
        static/js/bootstrap.js on lines 4204..4207

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

          $.fn[NAME$a].noConflict = function () {
            $.fn[NAME$a] = JQUERY_NO_CONFLICT$a;
            return Toast._jQueryInterface;
          };
        Severity: Major
        Found in static/js/bootstrap.js and 10 other locations - About 40 mins to fix
        static/js/bootstrap.js on lines 382..385
        static/js/bootstrap.js on lines 536..539
        static/js/bootstrap.js on lines 1134..1137
        static/js/bootstrap.js on lines 1494..1497
        static/js/bootstrap.js on lines 2016..2019
        static/js/bootstrap.js on lines 2592..2595
        static/js/bootstrap.js on lines 3268..3271
        static/js/bootstrap.js on lines 3455..3458
        static/js/bootstrap.js on lines 3762..3765
        static/js/bootstrap.js on lines 3994..3997

        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

        Severity
        Category
        Status
        Source
        Language