talho/openphin

View on GitHub
app/assets/javascripts/ext_extensions/PagingStore.js

Summary

Maintainability
F
5 days
Test Coverage

File PagingStore.js has 450 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * PagingStore for Ext 3.2 - v0.5
 */
Ext.ns('Ext.ux.data');
Ext.ux.data.PagingStore = Ext.extend(Ext.data.Store, {
Severity: Minor
Found in app/assets/javascripts/ext_extensions/PagingStore.js - About 6 hrs to fix

    Function loadRecords has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
    Open

        loadRecords: function (o, options, success) {
            if (this.isDestroyed === true) {
                return;
            }
            if (!o || success === false) {
    Severity: Minor
    Found in app/assets/javascripts/ext_extensions/PagingStore.js - About 2 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

    Function execute has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
    Open

        execute: function (action, rs, options, batch) {
            if (!Ext.data.Api.isAction(action)) {
                throw new Ext.data.Api.Error('execute', action);
            }
            options = Ext.applyIf(options || {}, {
    Severity: Minor
    Found in app/assets/javascripts/ext_extensions/PagingStore.js - About 2 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

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

        execute: function (action, rs, options, batch) {
            if (!Ext.data.Api.isAction(action)) {
                throw new Ext.data.Api.Error('execute', action);
            }
            options = Ext.applyIf(options || {}, {
    Severity: Minor
    Found in app/assets/javascripts/ext_extensions/PagingStore.js - About 1 hr to fix

      Function loadRecords has 40 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          loadRecords: function (o, options, success) {
              if (this.isDestroyed === true) {
                  return;
              }
              if (!o || success === false) {
      Severity: Minor
      Found in app/assets/javascripts/ext_extensions/PagingStore.js - About 1 hr to fix

        Function sortData has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
        Open

            sortData: function () {
                var sortInfo = this.hasMultiSort ? this.multiSortInfo : this.sortInfo,
                    direction = sortInfo.direction || "ASC",
                    sorters = sortInfo.sorters,
                    sortFns = [];
        Severity: Minor
        Found in app/assets/javascripts/ext_extensions/PagingStore.js - About 1 hr 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

        Function bindStore has 35 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            bindStore: function (store, initial) {
                var doLoad;
                if (!initial && this.store) {
                    if (store !== this.store && this.store.autoDestroy) {
                        this.store.destroy();
        Severity: Minor
        Found in app/assets/javascripts/ext_extensions/PagingStore.js - About 1 hr to fix

          Function sortData has 35 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              sortData: function () {
                  var sortInfo = this.hasMultiSort ? this.multiSortInfo : this.sortInfo,
                      direction = sortInfo.direction || "ASC",
                      sorters = sortInfo.sorters,
                      sortFns = [];
          Severity: Minor
          Found in app/assets/javascripts/ext_extensions/PagingStore.js - About 1 hr to fix

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

                isPaging: function (params) {
                    var pn = this.paramNames,
                        start = params[pn.start],
                        limit = params[pn.limit];
                    if ((typeof start != 'number') || (typeof limit != 'number')) {
            Severity: Minor
            Found in app/assets/javascripts/ext_extensions/PagingStore.js - About 1 hr to fix

              Function isPaging has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
              Open

                  isPaging: function (params) {
                      var pn = this.paramNames,
                          start = params[pn.start],
                          limit = params[pn.limit];
                      if ((typeof start != 'number') || (typeof limit != 'number')) {
              Severity: Minor
              Found in app/assets/javascripts/ext_extensions/PagingStore.js - About 1 hr 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

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

                  remove: function (record) {
                      if (Ext.isArray(record)) {
                          Ext.each(record, function (r) {
                              this.remove(r);
                          }, this);
              Severity: Minor
              Found in app/assets/javascripts/ext_extensions/PagingStore.js - About 1 hr to fix

                Function bindStore has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                Open

                    bindStore: function (store, initial) {
                        var doLoad;
                        if (!initial && this.store) {
                            if (store !== this.store && this.store.autoDestroy) {
                                this.store.destroy();
                Severity: Minor
                Found in app/assets/javascripts/ext_extensions/PagingStore.js - About 45 mins 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

                Function remove has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                Open

                    remove: function (record) {
                        if (Ext.isArray(record)) {
                            Ext.each(record, function (r) {
                                this.remove(r);
                            }, this);
                Severity: Minor
                Found in app/assets/javascripts/ext_extensions/PagingStore.js - About 45 mins 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

                Avoid too many return statements within this function.
                Open

                                return false;
                Severity: Major
                Found in app/assets/javascripts/ext_extensions/PagingStore.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          return true;
                  Severity: Major
                  Found in app/assets/javascripts/ext_extensions/PagingStore.js - About 30 mins to fix

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

                            for (var i = 0, len = d.length; i < len; i++) {
                                v = d[i].data[dataIndex];
                                sv = String(v);
                                if ((allowNull || !Ext.isEmpty(v)) && !l[sv]) {
                                    l[sv] = true;
                    Severity: Major
                    Found in app/assets/javascripts/ext_extensions/PagingStore.js and 1 other location - About 4 hrs to fix
                    app/assets/javascripts/ext/src/data/Store.js on lines 1848..1855

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

                    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 (this.expandData === true) {
                                var r = [];
                                for (var i = 0, len = data.length; i < len; i++) {
                                    r[r.length] = [data[i]];
                                }
                    Severity: Major
                    Found in app/assets/javascripts/ext_extensions/PagingStore.js and 1 other location - About 2 hrs to fix
                    app/assets/javascripts/ext/src/data/ArrayStore.js on lines 56..62

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

                    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 (!o || success === false) {
                                if (success !== false) {
                                    this.fireEvent('load', this, [], options);
                                }
                                if (options.callback) {
                    Severity: Major
                    Found in app/assets/javascripts/ext_extensions/PagingStore.js and 1 other location - About 2 hrs to fix
                    app/assets/javascripts/ext/src/data/Store.js on lines 1261..1269

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

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

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

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

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

                    Refactorings

                    Further Reading

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

                    Ext.ux.data.PagingJsonStore = Ext.extend(Ext.ux.data.PagingStore, {
                        constructor: function(){
                          Ext.data.JsonStore.prototype.constructor.apply(this, arguments);
                        }
                    });
                    Severity: Major
                    Found in app/assets/javascripts/ext_extensions/PagingStore.js and 2 other locations - About 2 hrs to fix
                    app/assets/javascripts/ext_extensions/PagingStore.js on lines 410..414
                    app/assets/javascripts/ext_extensions/PagingStore.js on lines 424..428

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

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

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

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

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

                    Refactorings

                    Further Reading

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

                    Ext.ux.data.PagingDirectStore = Ext.extend(Ext.ux.data.PagingStore, {
                        constructor: function(){
                          Ext.data.DirectStore.prototype.constructor.apply(this, arguments);
                        }
                    });
                    Severity: Major
                    Found in app/assets/javascripts/ext_extensions/PagingStore.js and 2 other locations - About 2 hrs to fix
                    app/assets/javascripts/ext_extensions/PagingStore.js on lines 417..421
                    app/assets/javascripts/ext_extensions/PagingStore.js on lines 424..428

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

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

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

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

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

                    Refactorings

                    Further Reading

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

                    Ext.ux.data.PagingXmlStore = Ext.extend(Ext.ux.data.PagingStore, {
                        constructor: function(){
                          Ext.data.XmlStore.prototype.constructor.apply(this, arguments);
                        }
                    });
                    Severity: Major
                    Found in app/assets/javascripts/ext_extensions/PagingStore.js and 2 other locations - About 2 hrs to fix
                    app/assets/javascripts/ext_extensions/PagingStore.js on lines 410..414
                    app/assets/javascripts/ext_extensions/PagingStore.js on lines 417..421

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

                    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 (sortFns.length > 1) {
                                    for (var i = 1, j = sortFns.length; i < j; i++) {
                                        result = result || sortFns[i].call(this, r1, r2);
                                    }
                                }
                    Severity: Major
                    Found in app/assets/javascripts/ext_extensions/PagingStore.js and 1 other location - About 1 hr to fix
                    app/assets/javascripts/ext/src/data/Store.js on lines 1409..1413

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

                    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 (this.writer && this.proxy.url && !this.proxy.restful && !Ext.data.Api.hasUniqueUrl(this.proxy, action)) {
                                    options.params.xaction = action;
                                }
                    Severity: Major
                    Found in app/assets/javascripts/ext_extensions/PagingStore.js and 1 other location - About 1 hr to fix
                    app/assets/javascripts/ext/src/data/Store.js on lines 993..995

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

                    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

                                this.proxy.request(Ext.data.Api.actions[action], rs, options.params, this.reader, this.createCallback(action, rs, batch), this, options);
                    Severity: Minor
                    Found in app/assets/javascripts/ext_extensions/PagingStore.js and 1 other location - About 55 mins to fix
                    app/assets/javascripts/ext/src/data/Store.js on lines 1001..1001

                    Duplicated Code

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

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

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

                    Tuning

                    This issue has a mass of 54.

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

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

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

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

                    Refactorings

                    Further Reading

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

                            var sortInfo = this.hasMultiSort ? this.multiSortInfo : this.sortInfo,
                                direction = sortInfo.direction || "ASC",
                                sorters = sortInfo.sorters,
                                sortFns = [];
                    Severity: Minor
                    Found in app/assets/javascripts/ext_extensions/PagingStore.js and 1 other location - About 50 mins to fix
                    app/assets/javascripts/ext/src/data/Store.js on lines 1381..1384

                    Duplicated Code

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

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

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

                    Tuning

                    This issue has a mass of 52.

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

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

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

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

                    Refactorings

                    Further Reading

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

                            this.cursor = (o.params && o.params[p.start]) ? o.params[p.start] : 0;
                    Severity: Minor
                    Found in app/assets/javascripts/ext_extensions/PagingStore.js and 1 other location - About 40 mins to fix
                    app/assets/javascripts/ext/src/widgets/PagingToolbar.js on lines 329..329

                    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

                    There are no issues that match your filters.

                    Category
                    Status