bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

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

test('i18n: Leverage English (default) i18n titleFormat when translation key for specified language is not available.', patch_date(function(Date){
    var input = $('<input />')
                .appendTo('#qunit-fixture')
                .val('04/21/2015')
                .datepicker({
core/static/vendor/bootstrap-datepicker/tests/suites/options.js on lines 1405..1417

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

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

File jquery.expander.js has 333 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* jshint -W003 */
/*!
 * jQuery Expander Plugin - v1.7.0 - 2016-03-12
 * http://plugins.learningjquery.com/expander/
 * Copyright (c) 2016 Karl Swedberg
Severity: Minor
Found in core/static/vendor/jquery-expander/jquery.expander.js - About 4 hrs to fix

    Function keydown has 99 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            keydown: function(e){
                if (!this.picker.is(':visible')){
                    if (e.keyCode === 40 || e.keyCode === 27) { // allow down to re-show picker
                        this.show();
                        e.stopPropagation();

      Function keydown has 99 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              keydown: function(e){
                  if (!this.picker.is(':visible')){
                      if (e.keyCode === 40 || e.keyCode === 27) { // allow down to re-show picker
                          this.show();
                          e.stopPropagation();
      Severity: Major
      Found in core/static/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js - About 3 hrs to fix

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

        var symbolMap = {
            '1': '၁',
            '2': '၂',
            '3': '၃',
            '4': '၄',
        Severity: Major
        Found in core/static/vendor/moment/src/locale/my.js and 9 other locations - About 3 hrs to fix
        core/static/vendor/moment/src/locale/ar-sa.js on lines 7..29
        core/static/vendor/moment/src/locale/bn.js on lines 7..30
        core/static/vendor/moment/src/locale/bo.js on lines 7..30
        core/static/vendor/moment/src/locale/fa.js on lines 7..29
        core/static/vendor/moment/src/locale/hi.js on lines 7..30
        core/static/vendor/moment/src/locale/mr.js on lines 8..31
        core/static/vendor/moment/src/locale/ne.js on lines 7..30
        core/static/vendor/moment/src/locale/pa-in.js on lines 7..30
        core/static/vendor/moment/src/locale/ta.js on lines 7..29

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

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

        var symbolMap = {
            '1': '१',
            '2': '२',
            '3': '३',
            '4': '४',
        Severity: Major
        Found in core/static/vendor/moment/src/locale/ne.js and 9 other locations - About 3 hrs to fix
        core/static/vendor/moment/src/locale/ar-sa.js on lines 7..29
        core/static/vendor/moment/src/locale/bn.js on lines 7..30
        core/static/vendor/moment/src/locale/bo.js on lines 7..30
        core/static/vendor/moment/src/locale/fa.js on lines 7..29
        core/static/vendor/moment/src/locale/hi.js on lines 7..30
        core/static/vendor/moment/src/locale/mr.js on lines 8..31
        core/static/vendor/moment/src/locale/my.js on lines 9..31
        core/static/vendor/moment/src/locale/pa-in.js on lines 7..30
        core/static/vendor/moment/src/locale/ta.js on lines 7..29

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

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

        var symbolMap = {
            '1': '۱',
            '2': '۲',
            '3': '۳',
            '4': '۴',
        Severity: Major
        Found in core/static/vendor/moment/src/locale/fa.js and 9 other locations - About 3 hrs to fix
        core/static/vendor/moment/src/locale/ar-sa.js on lines 7..29
        core/static/vendor/moment/src/locale/bn.js on lines 7..30
        core/static/vendor/moment/src/locale/bo.js on lines 7..30
        core/static/vendor/moment/src/locale/hi.js on lines 7..30
        core/static/vendor/moment/src/locale/mr.js on lines 8..31
        core/static/vendor/moment/src/locale/my.js on lines 9..31
        core/static/vendor/moment/src/locale/ne.js on lines 7..30
        core/static/vendor/moment/src/locale/pa-in.js on lines 7..30
        core/static/vendor/moment/src/locale/ta.js on lines 7..29

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

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

        var symbolMap = {
            '1': '௧',
            '2': '௨',
            '3': '௩',
            '4': '௪',
        Severity: Major
        Found in core/static/vendor/moment/src/locale/ta.js and 9 other locations - About 3 hrs to fix
        core/static/vendor/moment/src/locale/ar-sa.js on lines 7..29
        core/static/vendor/moment/src/locale/bn.js on lines 7..30
        core/static/vendor/moment/src/locale/bo.js on lines 7..30
        core/static/vendor/moment/src/locale/fa.js on lines 7..29
        core/static/vendor/moment/src/locale/hi.js on lines 7..30
        core/static/vendor/moment/src/locale/mr.js on lines 8..31
        core/static/vendor/moment/src/locale/my.js on lines 9..31
        core/static/vendor/moment/src/locale/ne.js on lines 7..30
        core/static/vendor/moment/src/locale/pa-in.js on lines 7..30

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

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

        var symbolMap = {
            '1': '١',
            '2': '٢',
            '3': '٣',
            '4': '٤',
        Severity: Major
        Found in core/static/vendor/moment/src/locale/ar-sa.js and 9 other locations - About 3 hrs to fix
        core/static/vendor/moment/src/locale/bn.js on lines 7..30
        core/static/vendor/moment/src/locale/bo.js on lines 7..30
        core/static/vendor/moment/src/locale/fa.js on lines 7..29
        core/static/vendor/moment/src/locale/hi.js on lines 7..30
        core/static/vendor/moment/src/locale/mr.js on lines 8..31
        core/static/vendor/moment/src/locale/my.js on lines 9..31
        core/static/vendor/moment/src/locale/ne.js on lines 7..30
        core/static/vendor/moment/src/locale/pa-in.js on lines 7..30
        core/static/vendor/moment/src/locale/ta.js on lines 7..29

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

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

        var symbolMap = {
            '1': '༡',
            '2': '༢',
            '3': '༣',
            '4': '༤',
        Severity: Major
        Found in core/static/vendor/moment/src/locale/bo.js and 9 other locations - About 3 hrs to fix
        core/static/vendor/moment/src/locale/ar-sa.js on lines 7..29
        core/static/vendor/moment/src/locale/bn.js on lines 7..30
        core/static/vendor/moment/src/locale/fa.js on lines 7..29
        core/static/vendor/moment/src/locale/hi.js on lines 7..30
        core/static/vendor/moment/src/locale/mr.js on lines 8..31
        core/static/vendor/moment/src/locale/my.js on lines 9..31
        core/static/vendor/moment/src/locale/ne.js on lines 7..30
        core/static/vendor/moment/src/locale/pa-in.js on lines 7..30
        core/static/vendor/moment/src/locale/ta.js on lines 7..29

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

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

        var symbolMap = {
            '1': '१',
            '2': '२',
            '3': '३',
            '4': '४',
        Severity: Major
        Found in core/static/vendor/moment/src/locale/hi.js and 9 other locations - About 3 hrs to fix
        core/static/vendor/moment/src/locale/ar-sa.js on lines 7..29
        core/static/vendor/moment/src/locale/bn.js on lines 7..30
        core/static/vendor/moment/src/locale/bo.js on lines 7..30
        core/static/vendor/moment/src/locale/fa.js on lines 7..29
        core/static/vendor/moment/src/locale/mr.js on lines 8..31
        core/static/vendor/moment/src/locale/my.js on lines 9..31
        core/static/vendor/moment/src/locale/ne.js on lines 7..30
        core/static/vendor/moment/src/locale/pa-in.js on lines 7..30
        core/static/vendor/moment/src/locale/ta.js on lines 7..29

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

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

        var symbolMap = {
            '1': '१',
            '2': '२',
            '3': '३',
            '4': '४',
        Severity: Major
        Found in core/static/vendor/moment/src/locale/mr.js and 9 other locations - About 3 hrs to fix
        core/static/vendor/moment/src/locale/ar-sa.js on lines 7..29
        core/static/vendor/moment/src/locale/bn.js on lines 7..30
        core/static/vendor/moment/src/locale/bo.js on lines 7..30
        core/static/vendor/moment/src/locale/fa.js on lines 7..29
        core/static/vendor/moment/src/locale/hi.js on lines 7..30
        core/static/vendor/moment/src/locale/my.js on lines 9..31
        core/static/vendor/moment/src/locale/ne.js on lines 7..30
        core/static/vendor/moment/src/locale/pa-in.js on lines 7..30
        core/static/vendor/moment/src/locale/ta.js on lines 7..29

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

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

        var symbolMap = {
            '1': '১',
            '2': '২',
            '3': '৩',
            '4': '৪',
        Severity: Major
        Found in core/static/vendor/moment/src/locale/bn.js and 9 other locations - About 3 hrs to fix
        core/static/vendor/moment/src/locale/ar-sa.js on lines 7..29
        core/static/vendor/moment/src/locale/bo.js on lines 7..30
        core/static/vendor/moment/src/locale/fa.js on lines 7..29
        core/static/vendor/moment/src/locale/hi.js on lines 7..30
        core/static/vendor/moment/src/locale/mr.js on lines 8..31
        core/static/vendor/moment/src/locale/my.js on lines 9..31
        core/static/vendor/moment/src/locale/ne.js on lines 7..30
        core/static/vendor/moment/src/locale/pa-in.js on lines 7..30
        core/static/vendor/moment/src/locale/ta.js on lines 7..29

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

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

        var symbolMap = {
            '1': '੧',
            '2': '੨',
            '3': '੩',
            '4': '੪',
        Severity: Major
        Found in core/static/vendor/moment/src/locale/pa-in.js and 9 other locations - About 3 hrs to fix
        core/static/vendor/moment/src/locale/ar-sa.js on lines 7..29
        core/static/vendor/moment/src/locale/bn.js on lines 7..30
        core/static/vendor/moment/src/locale/bo.js on lines 7..30
        core/static/vendor/moment/src/locale/fa.js on lines 7..29
        core/static/vendor/moment/src/locale/hi.js on lines 7..30
        core/static/vendor/moment/src/locale/mr.js on lines 8..31
        core/static/vendor/moment/src/locale/my.js on lines 9..31
        core/static/vendor/moment/src/locale/ne.js on lines 7..30
        core/static/vendor/moment/src/locale/ta.js on lines 7..29

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

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

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

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

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

        Refactorings

        Further Reading

        Function profile has a Cognitive Complexity of 27 (exceeds 5 allowed). Consider refactoring.
        Open

        def profile(request):
        
            # Get the user's profile
            try:
                profile = models.Profile.objects.get(user = request.user.id)
        Severity: Minor
        Found in users/views.py - About 3 hrs to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

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

        function fixInput( src, dest ) {
            var nodeName = dest.nodeName.toLowerCase();
        
            // Fails to persist the checked state of a cloned checkbox or radio button.
            if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
        Severity: Major
        Found in core/static/vendor/jquery/src/manipulation.js and 2 other locations - About 3 hrs to fix
        core/static/vendor/jquery/dist/jquery.js on lines 5690..5701
        core/static/vendor/jquery/dist/jquery.slim.js on lines 5690..5701

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

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

        function setOffsetToParsedOffset () {
            if (this._tzm != null) {
                this.utcOffset(this._tzm);
            } else if (typeof this._i === 'string') {
                var tZone = offsetFromString(matchOffset, this._i);
        Severity: Major
        Found in core/static/vendor/moment/moment.js and 2 other locations - About 3 hrs to fix
        core/static/vendor/moment/min/moment-with-locales.js on lines 2748..2761
        core/static/vendor/moment/src/lib/units/offset.js on lines 173..186

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

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

        export function setOffsetToParsedOffset () {
            if (this._tzm != null) {
                this.utcOffset(this._tzm);
            } else if (typeof this._i === 'string') {
                var tZone = offsetFromString(matchOffset, this._i);
        Severity: Major
        Found in core/static/vendor/moment/src/lib/units/offset.js and 2 other locations - About 3 hrs to fix
        core/static/vendor/moment/min/moment-with-locales.js on lines 2748..2761
        core/static/vendor/moment/moment.js on lines 2754..2767

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

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

        function setOffsetToParsedOffset () {
            if (this._tzm != null) {
                this.utcOffset(this._tzm);
            } else if (typeof this._i === 'string') {
                var tZone = offsetFromString(matchOffset, this._i);
        Severity: Major
        Found in core/static/vendor/moment/min/moment-with-locales.js and 2 other locations - About 3 hrs to fix
        core/static/vendor/moment/moment.js on lines 2754..2767
        core/static/vendor/moment/src/lib/units/offset.js on lines 173..186

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

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

        function fixInput( src, dest ) {
            var nodeName = dest.nodeName.toLowerCase();
        
            // Fails to persist the checked state of a cloned checkbox or radio button.
            if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
        Severity: Major
        Found in core/static/vendor/jquery/dist/jquery.slim.js and 2 other locations - About 3 hrs to fix
        core/static/vendor/jquery/dist/jquery.js on lines 5690..5701
        core/static/vendor/jquery/src/manipulation.js on lines 112..123

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

        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