FrenchYeti/dexcalibur

View on GitHub
src/BackupManager.js

Summary

Maintainability
F
1 wk
Test Coverage

Function save has a Cognitive Complexity of 134 (exceeds 5 allowed). Consider refactoring.
Open

function save(data,file){
    let tab={}, src={}, block=null;


    for(let i in data.classes){
Severity: Minor
Found in src/BackupManager.js - About 2 days 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 restore has a Cognitive Complexity of 63 (exceeds 5 allowed). Consider refactoring.
Open

function restore(filepath){
    let src=null, db=[];

    // unzip file
    Process.exec("unzip "+filepath);
Severity: Minor
Found in src/BackupManager.js - About 1 day 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 save has 230 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function save(data,file){
    let tab={}, src={}, block=null;


    for(let i in data.classes){
Severity: Major
Found in src/BackupManager.js - About 1 day to fix

    File BackupManager.js has 414 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    var fs = require('fs');
    var Chalk = require("chalk");
    var Process = require("child_process");
    const Path = require("path");
    
    
    Severity: Minor
    Found in src/BackupManager.js - About 5 hrs to fix

      Function restore has 107 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function restore(filepath){
          let src=null, db=[];
      
          // unzip file
          Process.exec("unzip "+filepath);
      Severity: Major
      Found in src/BackupManager.js - About 4 hrs to fix

        Function findCyclicRef has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
        Open

        function findCyclicRef(obj,fullPath=[],endPath=[],cycle=0){
            let path = fullPath, end=endPath, k=0;
            if(cycle>cycleMax){
                //console.log("[E] Max cycle : "+path.join('.'));
                return false;
        Severity: Minor
        Found in src/BackupManager.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 findCyclicRef has 45 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function findCyclicRef(obj,fullPath=[],endPath=[],cycle=0){
            let path = fullPath, end=endPath, k=0;
            if(cycle>cycleMax){
                //console.log("[E] Max cycle : "+path.join('.'));
                return false;
        Severity: Minor
        Found in src/BackupManager.js - About 1 hr to fix

          Avoid deeply nested control flow statements.
          Open

                              for(let j in src.methods[k]._callers){
                                  tab[id]._callers.push(
                                      new CircularReference(
                                          STUB.METHOD,
                                          src.methods[k]._callers[j].signature()
          Severity: Major
          Found in src/BackupManager.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                for(let l in src.methods[k].instr){
                                    block = src.methods[k].instr[l];
                                    bbstub = new Core.Stub(
                                        STUB.BASIC_BLOCK,
                                        block,
            Severity: Major
            Found in src/BackupManager.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                  if(bb.stack[l].right.$ !== undefined){
              
                                      switch(bb.stack[l].right.__type__){
                                          case STUB_TYPE.CLASS:
                                              bb.stack[l].right = db[bb.stack[l].right.id];
              Severity: Major
              Found in src/BackupManager.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                    for(let m in src.methods[k]._useField[l]){
                                        tab[id]._useField[l][m] = new CircularReference(
                                            STUB.FIELD,
                                            l
                                        );
                Severity: Major
                Found in src/BackupManager.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                      for(let m in src.methods[k]._useClass[l]){
                                          tab[id]._useClass[l][m] = new CircularReference(
                                              STUB.CLASS,
                                              l
                                          );
                  Severity: Major
                  Found in src/BackupManager.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                        for(let j in src.fields[k]._callers){
                                            tab[fieldSign]._callers.push(
                                                new CircularReference(
                                                    STUB.METHOD,
                                                    src.fields[k]._callers[j].name
                    Severity: Major
                    Found in src/BackupManager.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                          for(let m in src.methods[k]._useMethod[l]){
                                              tab[id]._useMethod[l][m] = new CircularReference(
                                                  STUB.METHOD,
                                                  l
                                              );
                      Severity: Major
                      Found in src/BackupManager.js - About 45 mins to fix

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

                                        for(let l in src.methods[k]._useClass){
                                            tab[id]._useClass[l] = [];
                                            for(let m in src.methods[k]._useClass[l]){
                                                tab[id]._useClass[l][m] = new CircularReference(
                                                    STUB.CLASS,
                        Severity: Major
                        Found in src/BackupManager.js and 2 other locations - About 2 hrs to fix
                        src/BackupManager.js on lines 306..314
                        src/BackupManager.js on lines 317..325

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

                        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

                                        for(let l in src.methods[k]._useField){
                                            tab[id]._useField[l] = [];
                                            for(let m in src.methods[k]._useField[l]){
                                                tab[id]._useField[l][m] = new CircularReference(
                                                    STUB.FIELD,
                        Severity: Major
                        Found in src/BackupManager.js and 2 other locations - About 2 hrs to fix
                        src/BackupManager.js on lines 306..314
                        src/BackupManager.js on lines 328..336

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

                        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

                                        for(let l in src.methods[k]._useMethod){
                                            tab[id]._useMethod[l] = [];
                                            for(let m in src.methods[k]._useMethod[l]){
                                                tab[id]._useMethod[l][m] = new CircularReference(
                                                    STUB.METHOD,
                        Severity: Major
                        Found in src/BackupManager.js and 2 other locations - About 2 hrs to fix
                        src/BackupManager.js on lines 317..325
                        src/BackupManager.js on lines 328..336

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

                        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(typeof db[i].implements == 'array'){
                                    db[i].implements = [];
                                    for(let j in src[i].implements){
                                        db[i].implements.push(db[src[i].implements[j].id]);
                                    }
                        Severity: Major
                        Found in src/BackupManager.js and 1 other location - About 2 hrs to fix
                        src/BackupManager.js on lines 477..482

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

                        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(typeof db[i].innerClass == 'array'){
                                    db[i].innerClass = [];
                                    for(let j in src[i].innerClass){
                                        db[i].innerClass.push(db[src[i].innerClass[j].id]);
                                    }
                        Severity: Major
                        Found in src/BackupManager.js and 1 other location - About 2 hrs to fix
                        src/BackupManager.js on lines 483..488

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

                        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

                                        case REF.METHOD: 
                                            db[src[i].enclosingClass.id].methods[i] = new Core.Method();
                                            db[src[i].enclosingClass.id].methods[i].import(src[i]);
                                            break;
                        Severity: Major
                        Found in src/BackupManager.js and 1 other location - About 1 hr to fix
                        src/BackupManager.js on lines 452..455

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

                        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

                                        case REF.FIELD:
                                            db[src[i].enclosingClass.id].fields[i] = new Core.Field();
                                            db[src[i].enclosingClass.id].fields[i].import(src[i]);
                                            break;
                        Severity: Major
                        Found in src/BackupManager.js and 1 other location - About 1 hr to fix
                        src/BackupManager.js on lines 448..451

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

                        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

                                                            case STUB_TYPE.METHOD:
                                                                meth = src[bb.stack[l].right.id];
                                                                bb.stack[l].right = db[meth.enclosingClass.id].methods[meth.id];
                                                                break;
                        Severity: Major
                        Found in src/BackupManager.js and 3 other locations - About 1 hr to fix
                        src/BackupManager.js on lines 516..519
                        src/BackupManager.js on lines 520..523
                        src/BackupManager.js on lines 533..536

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

                                                    case STUB_TYPE.FIELD:
                                                        fied = db[bb.stack[l].right.id];
                                                        bb.stack[l].right = src[fied.enclosingClass.id].fields[fied.id];
                                                        break;
                        Severity: Major
                        Found in src/BackupManager.js and 3 other locations - About 1 hr to fix
                        src/BackupManager.js on lines 516..519
                        src/BackupManager.js on lines 529..532
                        src/BackupManager.js on lines 533..536

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

                                                    case STUB_TYPE.METHOD:
                                                        meth = db[bb.stack[l].right.id];
                                                        bb.stack[l].right = src[meth.enclosingClass.id].methods[meth.id];
                                                        break;
                        Severity: Major
                        Found in src/BackupManager.js and 3 other locations - About 1 hr to fix
                        src/BackupManager.js on lines 520..523
                        src/BackupManager.js on lines 529..532
                        src/BackupManager.js on lines 533..536

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

                                                            case STUB_TYPE.FIELD:
                                                                field = src[bb.stack[l].right.id];
                                                                bb.stack[l].right = db[field.enclosingClass.id].fields[field.id];
                                                                break;
                        Severity: Major
                        Found in src/BackupManager.js and 3 other locations - About 1 hr to fix
                        src/BackupManager.js on lines 516..519
                        src/BackupManager.js on lines 520..523
                        src/BackupManager.js on lines 529..532

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

                                    for(let j in src[i].fields){
                                        db[i].fields[j] = new Core.Field();
                                        db[i].fields[j].import(src[i].fields[j]);
                                    }
                        Severity: Minor
                        Found in src/BackupManager.js and 1 other location - About 30 mins to fix
                        src/BackupManager.js on lines 441..444

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

                        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(let j in src[i].methods){
                                        db[i].methods[j] = new Core.Method();
                                        db[i].methods[j].import(src[i].methods[j]);
                                    }
                        Severity: Minor
                        Found in src/BackupManager.js and 1 other location - About 30 mins to fix
                        src/BackupManager.js on lines 435..438

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

                        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