codenautas/backend-plus

View on GitHub
for-client/my-things.js

Summary

Maintainability
F
1 wk
Test Coverage

File my-things.js has 809 lines of code (exceeds 250 allowed). Consider refactoring.
Open

"use strict";

/// <reference path="../node_modules/types.d.ts/modules/typed-controls/index.d.ts" />
//no/ <reference path="../node_modules/types.d.ts/modules/dialog-promise/index.d.ts" />
/// <reference path="../node_modules/types.d.ts/modules/codenautas-umd/index.d.ts" />
Severity: Major
Found in for-client/my-things.js - About 1 day to fix

    Function captureKeys has 193 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    myOwn.captureKeys = function captureKeys() {
        var previousKey;
        var previousPosition;
        var my=this;
        if(this.captureKeysInstaled){
    Severity: Major
    Found in for-client/my-things.js - About 7 hrs to fix

      Function testKeepAlive has 49 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      myOwn.testKeepAlive = function testKeepAlive(){
          var my = this;
          var element = document.getElementById('keep-alive-signal') || my.debugging && document.body.appendChild(html.div({id:'keep-alive-signal'}).create());
          if(element){
              element.textContent='t';
      Severity: Minor
      Found in for-client/my-things.js - About 1 hr to fix

        Function autoSetupMyThings has 43 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function autoSetupMyThings(){
                var my = this;
                if(!('server' in my)){
                    my.server = {connected: null, broadcaster:html.div({id:'server-status-broadcaster'}).create()}
                }
        Severity: Minor
        Found in for-client/my-things.js - About 1 hr to fix

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

          myOwn.insertRow = function insertRow(where){
              var my = this;
              var section, iRow, newTr;
              if(where.under){
                  section = where.under.parentNode;
          Severity: Minor
          Found in for-client/my-things.js - About 1 hr to fix

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

            myOwn.fade = function fade(element, options){
                options=options||{};
                if (!element.parentNode) return
                if(element.tagName.toUpperCase()==='TR' && element.parentNode.replaceChild && !options.fast){
                    var parent=element.parentNode;
            Severity: Minor
            Found in for-client/my-things.js - About 1 hr to fix

              Function createSmartButton has 36 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              myOwn.createSmartButton = function createSmartButton(opts){
                  var button=opts.button || html.button(opts.buttonProperties||{}, opts.buttonContent||opts.buttonLabel).create();
                  Object.defineProperty(button, 'smartState', {
                      get:function(){ return this.getAttribute('smart-button'); },
                      set:function(value){ 
              Severity: Minor
              Found in for-client/my-things.js - About 1 hr to fix

                Function log has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                myOwn.log = function log(severity, message){
                    var my=this;
                    var consoleMessage;
                    var clientMessage;
                    if(!message){
                Severity: Minor
                Found in for-client/my-things.js - About 1 hr to fix

                  Consider simplifying this complex logical expression.
                  Open

                          if(evento.which==115 && !evento.shiftKey  && !evento.ctrlKey  && !evento.altKey  && !evento.metaKey){ // F4
                              /** @type {HTMLElement} */
                              var activeElement = this.activeElement && this.activeElement.tagName!='BODY' && this.activeElement || document.mayBeRepetibleButton; 
                              var info=tableInfo(activeElement);
                              if(info.table){
                  Severity: Critical
                  Found in for-client/my-things.js - About 1 hr to fix

                    Avoid deeply nested control flow statements.
                    Open

                                            if(info.td.childNodes.length==1){
                                                button.click();
                                                var bellowRow = info.table.rows[info.tr.rowIndex+1];
                                                if(bellowRow){
                                                    var nextButton = bellowRow.cells[info.td.cellIndex].childNodes[0]
                    Severity: Major
                    Found in for-client/my-things.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                              if(info.td.setTypedValue){
                                                  info.td.setTypedValue(value, true);
                                                  var belowPos=info.tr.rowIndex+1;
                                                  var belowRow=info.table.rows[belowPos];
                                                  if(belowRow){
                      Severity: Major
                      Found in for-client/my-things.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                if(document.activeElement){
                                                    var sel = window.getSelection()
                                                    sel.collapse(document.activeElement,document.activeElement.childNodes.length);
                                                }
                        Severity: Major
                        Found in for-client/my-things.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                              }else if(aboveCell.getTypedValue){
                                                  var value=aboveCell.getTypedValue();
                                                  if(info.td.setTypedValue){
                                                      info.td.setTypedValue(value, true);
                                                      var belowPos=info.tr.rowIndex+1;
                          Severity: Major
                          Found in for-client/my-things.js - About 45 mins to fix

                            Consider simplifying this complex logical expression.
                            Open

                                    if(evento.which==13 && !evento.shiftKey  && !evento.ctrlKey  && !evento.altKey  && !evento.metaKey && !this.activeElement.getAttribute("enter-clicks")){ // Enter
                                        var enfoco=this.activeElement;
                                        var este=this.activeElement;
                                        if(enter_hace_tab_en_este_elemento(este)){
                                            var no_me_voy_a_colgar=2000;
                            Severity: Major
                            Found in for-client/my-things.js - About 40 mins to fix

                              Consider simplifying this complex logical expression.
                              Open

                                      if((evento.which==40 || evento.which==38)  && !evento.shiftKey  && !evento.ctrlKey  && !evento.altKey  && !evento.metaKey){ // KeyDown, KeyUp
                                          var info=tableInfo(this.activeElement);
                                      }
                              Severity: Major
                              Found in for-client/my-things.js - About 40 mins to fix

                                Consider simplifying this complex logical expression.
                                Open

                                    if(elemento.children.length && !noGoDownWhen(proximo)){
                                        while(proximo.children.length>0 && no_me_voy_a_colgar-- && !noGoDownWhen(proximo)){
                                            proximo=proximo.children[0];
                                        }
                                        return proximo;
                                Severity: Major
                                Found in for-client/my-things.js - About 40 mins to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                          if((evento.which==40 || evento.which==38)  && !evento.shiftKey  && !evento.ctrlKey  && !evento.altKey  && !evento.metaKey){ // KeyDown, KeyUp
                                              var info=tableInfo(this.activeElement);
                                              if(info.table){
                                                  var newPos=info.tr.rowIndex+evento.which-39;
                                                  var newRow=info.table.rows[newPos];
                                  Severity: Major
                                  Found in for-client/my-things.js - About 40 mins to fix

                                    Function codenautasModuleDefinition has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                    (function codenautasModuleDefinition(root, name, factory) {
                                        /* global define */
                                        /* istanbul ignore next */
                                        if(typeof root.globalModuleName !== 'string'){
                                            root.globalModuleName = name;
                                    Severity: Minor
                                    Found in for-client/my-things.js - About 35 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

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

                                    (function codenautasModuleDefinition(root, name, factory) {
                                        /* global define */
                                        /* istanbul ignore next */
                                        if(typeof root.globalModuleName !== 'string'){
                                            root.globalModuleName = name;
                                    Severity: Major
                                    Found in for-client/my-things.js and 1 other location - About 7 hrs to fix
                                    unlogged/my-ajax.js on lines 2..700

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

                                    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(aboveCell.getTypedValue){
                                                            var value=aboveCell.getTypedValue();
                                                            if(info.td.setTypedValue){
                                                                info.td.setTypedValue(value, true);
                                                                var belowPos=info.tr.rowIndex+1;
                                    Severity: Major
                                    Found in for-client/my-things.js and 1 other location - About 6 hrs to fix
                                    for-client/my-things.js on lines 736..750

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 159.

                                    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

                                                        }else if(aboveCell.getTypedValue){
                                                            var value=aboveCell.getTypedValue();
                                                            if(info.td.setTypedValue){
                                                                info.td.setTypedValue(value, true);
                                                                var belowPos=info.tr.rowIndex+1;
                                    Severity: Major
                                    Found in for-client/my-things.js and 1 other location - About 6 hrs to fix
                                    for-client/my-things.js on lines 789..803

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

                                    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

                                    myOwn.i18n.messages.es = {
                                        autoCloseWhenEnds: "cerrar la ventana al terminar",
                                        Cancel   : "Cancelar",
                                        exportFields: "exportar campos",
                                        fromOtherTables: "desde otras tablas",
                                    Severity: Major
                                    Found in for-client/my-things.js and 1 other location - About 2 hrs to fix
                                    for-client/my-things.js on lines 49..61

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

                                    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

                                    myOwn.i18n.messages.en = {
                                        autoCloseWhenEnds: "auto close when ends",
                                        Cancel   : "Cancel",
                                        exportFields: "export fields",
                                        fromOtherTables: "from other tables",
                                    Severity: Major
                                    Found in for-client/my-things.js and 1 other location - About 2 hrs to fix
                                    for-client/my-things.js on lines 63..75

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

                                    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

                                            if((evento.which==40 || evento.which==38)  && !evento.shiftKey  && !evento.ctrlKey  && !evento.altKey  && !evento.metaKey){ // KeyDown, KeyUp
                                                var info=tableInfo(this.activeElement);
                                            }
                                    Severity: Major
                                    Found in for-client/my-things.js and 1 other location - About 1 hr to fix
                                    for-client/my-things.js on lines 686..699

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 62.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                            if((evento.which==40 || evento.which==38)  && !evento.shiftKey  && !evento.ctrlKey  && !evento.altKey  && !evento.metaKey){ // KeyDown, KeyUp
                                                var info=tableInfo(this.activeElement);
                                                if(info.table){
                                                    var newPos=info.tr.rowIndex+evento.which-39;
                                                    var newRow=info.table.rows[newPos];
                                    Severity: Major
                                    Found in for-client/my-things.js and 1 other location - About 1 hr to fix
                                    for-client/my-things.js on lines 683..685

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

                                            if(evento.which==37 && !evento.shiftKey  && !evento.ctrlKey  && !evento.altKey  && !evento.metaKey){ // KeyLeft
                                                var info=tableInfo(this.activeElement);
                                                if(info.table){
                                                    if(evento.ctrlKey || info.td.textContent=='' || !getCaretPosition(info.td)){
                                                        var newPos=info.td.cellIndex-1;
                                    Severity: Major
                                    Found in for-client/my-things.js and 3 other locations - About 45 mins to fix
                                    for-client/my-things.js on lines 672..682
                                    for-client/my-things.js on lines 714..753
                                    for-client/my-things.js on lines 809..811

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 50.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                                if(evento.which==106 && !evento.shiftKey  && !evento.ctrlKey  && !evento.altKey  && !evento.metaKey){
                                                    this.activeElement.focus();
                                                }
                                    Severity: Major
                                    Found in for-client/my-things.js and 3 other locations - About 45 mins to fix
                                    for-client/my-things.js on lines 643..661
                                    for-client/my-things.js on lines 672..682
                                    for-client/my-things.js on lines 714..753

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 50.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                            if(evento.which==39 && !evento.shiftKey  && !evento.ctrlKey  && !evento.altKey  && !evento.metaKey){ // KeyRight
                                                var info=tableInfo(this.activeElement);
                                                if(info.table){
                                                    if(evento.ctrlKey || info.td.textContent=='' || (previousKey == 39 && getCaretPosition(info.td)==info.td.textContent.length)){
                                                        goRight();
                                    Severity: Major
                                    Found in for-client/my-things.js and 3 other locations - About 45 mins to fix
                                    for-client/my-things.js on lines 643..661
                                    for-client/my-things.js on lines 714..753
                                    for-client/my-things.js on lines 809..811

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 50.

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

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

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

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

                                    Refactorings

                                    Further Reading

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

                                            if(evento.which==115 && !evento.shiftKey  && !evento.ctrlKey  && !evento.altKey  && !evento.metaKey){ // F4
                                                /** @type {HTMLElement} */
                                                var activeElement = this.activeElement && this.activeElement.tagName!='BODY' && this.activeElement || document.mayBeRepetibleButton; 
                                                var info=tableInfo(activeElement);
                                                if(info.table){
                                    Severity: Major
                                    Found in for-client/my-things.js and 3 other locations - About 45 mins to fix
                                    for-client/my-things.js on lines 643..661
                                    for-client/my-things.js on lines 672..682
                                    for-client/my-things.js on lines 809..811

                                    Duplicated Code

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

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

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

                                    Tuning

                                    This issue has a mass of 50.

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

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

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

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

                                    Refactorings

                                    Further Reading

                                    There are no issues that match your filters.

                                    Category
                                    Status