bronycub/sugarcub

View on GitHub

Showing 3,238 of 3,238 total issues

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

            for (var i = 0; i < touches.length; i++) {
                if (touches[i].pointerId === e.pointerId) {
                    touches.splice(i, 1);
                    break;
                }
Severity: Major
Found in core/static/vendor/leaflet/dist/leaflet-src.js and 1 other location - About 1 hr to fix
core/static/vendor/leaflet/dist/leaflet-src.js on lines 7200..7205

Duplicated Code

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

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

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

Tuning

This issue has a mass of 63.

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

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

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

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

Refactorings

Further Reading

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

function getSetWeek (input) {
    var week = this.localeData().week(this);
    return input == null ? week : this.add((input - week) * 7, 'd');
}
Severity: Major
Found in core/static/vendor/moment/min/moment-with-locales.js and 1 other location - About 1 hr to fix
core/static/vendor/moment/moment.js on lines 1258..1261

Duplicated Code

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

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

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

Tuning

This issue has a mass of 63.

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

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

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

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

Refactorings

Further Reading

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

                for (var i = 0; i < pointers.length; i++) {
                    if (pointers[i].pointerId === e.pointerId) {
                        pointers.splice(i, 1);
                        break;
                    }
Severity: Major
Found in core/static/vendor/leaflet/dist/leaflet-src.js and 1 other location - About 1 hr to fix
core/static/vendor/leaflet/dist/leaflet-src.js on lines 7250..7255

Duplicated Code

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

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

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

Tuning

This issue has a mass of 63.

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

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

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

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

Refactorings

Further Reading

Function handlers has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    handlers: function( event, handlers ) {
        var i, handleObj, sel, matchedHandlers, matchedSelectors,
            handlerQueue = [],
            delegateCount = handlers.delegateCount,
            cur = event.target;
Severity: Minor
Found in core/static/vendor/jquery/dist/jquery.js - About 1 hr to fix

    Function handlers has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        handlers: function( event, handlers ) {
            var i, handleObj, sel, matchedHandlers, matchedSelectors,
                handlerQueue = [],
                delegateCount = handlers.delegateCount,
                cur = event.target;
    Severity: Minor
    Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

      Function setOffset has 34 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          setOffset: function( elem, options, i ) {
              var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
                  position = jQuery.css( elem, "position" ),
                  curElem = jQuery( elem ),
                  props = {};
      Severity: Minor
      Found in core/static/vendor/jquery/dist/jquery.js - About 1 hr to fix

        Function setOffset has 34 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            setOffset: function( elem, options, i ) {
                var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
                    position = jQuery.css( elem, "position" ),
                    curElem = jQuery( elem ),
                    props = {};
        Severity: Minor
        Found in core/static/vendor/jquery/dist/jquery.slim.js - About 1 hr to fix

          Function setOffset has 34 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              setOffset: function( elem, options, i ) {
                  var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
                      position = jQuery.css( elem, "position" ),
                      curElem = jQuery( elem ),
                      props = {};
          Severity: Minor
          Found in core/static/vendor/jquery/src/offset.js - About 1 hr to fix

            Function handlers has 34 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                handlers: function( event, handlers ) {
                    var i, handleObj, sel, matchedHandlers, matchedSelectors,
                        handlerQueue = [],
                        delegateCount = handlers.delegateCount,
                        cur = event.target;
            Severity: Minor
            Found in core/static/vendor/jquery/src/event.js - About 1 hr to fix

              Function daysOfWeekDisabled has 34 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      picker.daysOfWeekDisabled = function (daysOfWeekDisabled) {
                          if (arguments.length === 0) {
                              return options.daysOfWeekDisabled.splice(0);
                          }
              
              

                Function array has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                                "array": function( b, a ) {
                                    var i, j, len, loop, aCircular, bCircular;
                
                                    // b could be an object literal here
                                    if ( QUnit.objectType( b ) !== "array" ) {
                Severity: Minor
                Found in core/static/vendor/jquery-expander/test/qunit/qunit.1.19.0.js - About 1 hr to fix

                  Function style has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    style: function( elem, name, value, extra ) {
                      // Don't set styles on text and comment nodes
                      if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
                        return;
                      }
                  Severity: Minor
                  Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 1 hr to fix

                    Function cleanData has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      cleanData: function( elems, /* internal */ acceptData ) {
                        var elem, type, id, data,
                          i = 0,
                          internalKey = jQuery.expando,
                          cache = jQuery.cache,
                    Severity: Minor
                    Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 1 hr to fix

                      Function setOffset has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        setOffset: function( elem, options, i ) {
                          var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
                            position = jQuery.css( elem, "position" ),
                            curElem = jQuery( elem ),
                            props = {};
                      Severity: Minor
                      Found in core/static/vendor/jquery-expander/test/jquery.1.11.3.js - About 1 hr to fix

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

                        var symbolMap$6 = {
                            '1': '१',
                            '2': '२',
                            '3': '३',
                            '4': '४',
                        Severity: Major
                        Found in core/static/vendor/moment/min/moment-with-locales.js and 19 other locations - About 1 hr to fix
                        core/static/vendor/moment/min/locales.js on lines 122..133
                        core/static/vendor/moment/min/locales.js on lines 286..297
                        core/static/vendor/moment/min/locales.js on lines 855..866
                        core/static/vendor/moment/min/locales.js on lines 963..974
                        core/static/vendor/moment/min/locales.js on lines 2614..2625
                        core/static/vendor/moment/min/locales.js on lines 3291..3302
                        core/static/vendor/moment/min/locales.js on lines 4621..4632
                        core/static/vendor/moment/min/locales.js on lines 5543..5554
                        core/static/vendor/moment/min/locales.js on lines 5854..5865
                        core/static/vendor/moment/min/locales.js on lines 7242..7253
                        core/static/vendor/moment/min/moment-with-locales.js on lines 4412..4423
                        core/static/vendor/moment/min/moment-with-locales.js on lines 4576..4587
                        core/static/vendor/moment/min/moment-with-locales.js on lines 5145..5156
                        core/static/vendor/moment/min/moment-with-locales.js on lines 5253..5264
                        core/static/vendor/moment/min/moment-with-locales.js on lines 6900..6911
                        core/static/vendor/moment/min/moment-with-locales.js on lines 8907..8918
                        core/static/vendor/moment/min/moment-with-locales.js on lines 9829..9840
                        core/static/vendor/moment/min/moment-with-locales.js on lines 10140..10151
                        core/static/vendor/moment/min/moment-with-locales.js on lines 11528..11539

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

                        var symbolMap$5 = {
                            '1': '۱',
                            '2': '۲',
                            '3': '۳',
                            '4': '۴',
                        Severity: Major
                        Found in core/static/vendor/moment/min/moment-with-locales.js and 19 other locations - About 1 hr to fix
                        core/static/vendor/moment/min/locales.js on lines 122..133
                        core/static/vendor/moment/min/locales.js on lines 286..297
                        core/static/vendor/moment/min/locales.js on lines 855..866
                        core/static/vendor/moment/min/locales.js on lines 963..974
                        core/static/vendor/moment/min/locales.js on lines 2614..2625
                        core/static/vendor/moment/min/locales.js on lines 3291..3302
                        core/static/vendor/moment/min/locales.js on lines 4621..4632
                        core/static/vendor/moment/min/locales.js on lines 5543..5554
                        core/static/vendor/moment/min/locales.js on lines 5854..5865
                        core/static/vendor/moment/min/locales.js on lines 7242..7253
                        core/static/vendor/moment/min/moment-with-locales.js on lines 4412..4423
                        core/static/vendor/moment/min/moment-with-locales.js on lines 4576..4587
                        core/static/vendor/moment/min/moment-with-locales.js on lines 5145..5156
                        core/static/vendor/moment/min/moment-with-locales.js on lines 5253..5264
                        core/static/vendor/moment/min/moment-with-locales.js on lines 7577..7588
                        core/static/vendor/moment/min/moment-with-locales.js on lines 8907..8918
                        core/static/vendor/moment/min/moment-with-locales.js on lines 9829..9840
                        core/static/vendor/moment/min/moment-with-locales.js on lines 10140..10151
                        core/static/vendor/moment/min/moment-with-locales.js on lines 11528..11539

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

                        var symbolMap$5 = {
                            '1': '۱',
                            '2': '۲',
                            '3': '۳',
                            '4': '۴',
                        Severity: Major
                        Found in core/static/vendor/moment/min/locales.js and 19 other locations - About 1 hr to fix
                        core/static/vendor/moment/min/locales.js on lines 122..133
                        core/static/vendor/moment/min/locales.js on lines 286..297
                        core/static/vendor/moment/min/locales.js on lines 855..866
                        core/static/vendor/moment/min/locales.js on lines 963..974
                        core/static/vendor/moment/min/locales.js on lines 3291..3302
                        core/static/vendor/moment/min/locales.js on lines 4621..4632
                        core/static/vendor/moment/min/locales.js on lines 5543..5554
                        core/static/vendor/moment/min/locales.js on lines 5854..5865
                        core/static/vendor/moment/min/locales.js on lines 7242..7253
                        core/static/vendor/moment/min/moment-with-locales.js on lines 4412..4423
                        core/static/vendor/moment/min/moment-with-locales.js on lines 4576..4587
                        core/static/vendor/moment/min/moment-with-locales.js on lines 5145..5156
                        core/static/vendor/moment/min/moment-with-locales.js on lines 5253..5264
                        core/static/vendor/moment/min/moment-with-locales.js on lines 6900..6911
                        core/static/vendor/moment/min/moment-with-locales.js on lines 7577..7588
                        core/static/vendor/moment/min/moment-with-locales.js on lines 8907..8918
                        core/static/vendor/moment/min/moment-with-locales.js on lines 9829..9840
                        core/static/vendor/moment/min/moment-with-locales.js on lines 10140..10151
                        core/static/vendor/moment/min/moment-with-locales.js on lines 11528..11539

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

                        var units = {
                            'm' : 'minutė_minutės_minutę',
                            'mm': 'minutės_minučių_minutes',
                            'h' : 'valanda_valandos_valandą',
                            'hh': 'valandos_valandų_valandas',
                        Severity: Major
                        Found in core/static/vendor/moment/min/locales.js and 19 other locations - About 1 hr to fix
                        core/static/vendor/moment/min/locales.js on lines 122..133
                        core/static/vendor/moment/min/locales.js on lines 286..297
                        core/static/vendor/moment/min/locales.js on lines 855..866
                        core/static/vendor/moment/min/locales.js on lines 963..974
                        core/static/vendor/moment/min/locales.js on lines 2614..2625
                        core/static/vendor/moment/min/locales.js on lines 3291..3302
                        core/static/vendor/moment/min/locales.js on lines 5543..5554
                        core/static/vendor/moment/min/locales.js on lines 5854..5865
                        core/static/vendor/moment/min/locales.js on lines 7242..7253
                        core/static/vendor/moment/min/moment-with-locales.js on lines 4412..4423
                        core/static/vendor/moment/min/moment-with-locales.js on lines 4576..4587
                        core/static/vendor/moment/min/moment-with-locales.js on lines 5145..5156
                        core/static/vendor/moment/min/moment-with-locales.js on lines 5253..5264
                        core/static/vendor/moment/min/moment-with-locales.js on lines 6900..6911
                        core/static/vendor/moment/min/moment-with-locales.js on lines 7577..7588
                        core/static/vendor/moment/min/moment-with-locales.js on lines 8907..8918
                        core/static/vendor/moment/min/moment-with-locales.js on lines 9829..9840
                        core/static/vendor/moment/min/moment-with-locales.js on lines 10140..10151
                        core/static/vendor/moment/min/moment-with-locales.js on lines 11528..11539

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

                        var symbolMap$11 = {
                            '1': '௧',
                            '2': '௨',
                            '3': '௩',
                            '4': '௪',
                        Severity: Major
                        Found in core/static/vendor/moment/min/locales.js and 19 other locations - About 1 hr to fix
                        core/static/vendor/moment/min/locales.js on lines 122..133
                        core/static/vendor/moment/min/locales.js on lines 286..297
                        core/static/vendor/moment/min/locales.js on lines 855..866
                        core/static/vendor/moment/min/locales.js on lines 963..974
                        core/static/vendor/moment/min/locales.js on lines 2614..2625
                        core/static/vendor/moment/min/locales.js on lines 3291..3302
                        core/static/vendor/moment/min/locales.js on lines 4621..4632
                        core/static/vendor/moment/min/locales.js on lines 5543..5554
                        core/static/vendor/moment/min/locales.js on lines 5854..5865
                        core/static/vendor/moment/min/moment-with-locales.js on lines 4412..4423
                        core/static/vendor/moment/min/moment-with-locales.js on lines 4576..4587
                        core/static/vendor/moment/min/moment-with-locales.js on lines 5145..5156
                        core/static/vendor/moment/min/moment-with-locales.js on lines 5253..5264
                        core/static/vendor/moment/min/moment-with-locales.js on lines 6900..6911
                        core/static/vendor/moment/min/moment-with-locales.js on lines 7577..7588
                        core/static/vendor/moment/min/moment-with-locales.js on lines 8907..8918
                        core/static/vendor/moment/min/moment-with-locales.js on lines 9829..9840
                        core/static/vendor/moment/min/moment-with-locales.js on lines 10140..10151
                        core/static/vendor/moment/min/moment-with-locales.js on lines 11528..11539

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

                        var symbolMap$6 = {
                            '1': '१',
                            '2': '२',
                            '3': '३',
                            '4': '४',
                        Severity: Major
                        Found in core/static/vendor/moment/min/locales.js and 19 other locations - About 1 hr to fix
                        core/static/vendor/moment/min/locales.js on lines 122..133
                        core/static/vendor/moment/min/locales.js on lines 286..297
                        core/static/vendor/moment/min/locales.js on lines 855..866
                        core/static/vendor/moment/min/locales.js on lines 963..974
                        core/static/vendor/moment/min/locales.js on lines 2614..2625
                        core/static/vendor/moment/min/locales.js on lines 4621..4632
                        core/static/vendor/moment/min/locales.js on lines 5543..5554
                        core/static/vendor/moment/min/locales.js on lines 5854..5865
                        core/static/vendor/moment/min/locales.js on lines 7242..7253
                        core/static/vendor/moment/min/moment-with-locales.js on lines 4412..4423
                        core/static/vendor/moment/min/moment-with-locales.js on lines 4576..4587
                        core/static/vendor/moment/min/moment-with-locales.js on lines 5145..5156
                        core/static/vendor/moment/min/moment-with-locales.js on lines 5253..5264
                        core/static/vendor/moment/min/moment-with-locales.js on lines 6900..6911
                        core/static/vendor/moment/min/moment-with-locales.js on lines 7577..7588
                        core/static/vendor/moment/min/moment-with-locales.js on lines 8907..8918
                        core/static/vendor/moment/min/moment-with-locales.js on lines 9829..9840
                        core/static/vendor/moment/min/moment-with-locales.js on lines 10140..10151
                        core/static/vendor/moment/min/moment-with-locales.js on lines 11528..11539

                        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

                        Severity
                        Category
                        Status
                        Source
                        Language