etnbrd/flx-compiler

View on GitHub

Showing 1,229 of 1,229 total issues

Function domManip has 70 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    domManip: function( args, table, callback ) {

        // Flatten any nested arrays
        args = core_concat.apply( [], args );

Severity: Major
Found in test-set/gifsockets-server-master/public/js/jquery.js - About 2 hrs to fix

    Function initProgram has 70 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        initProgram: function(gl) {
          var vertexShader,
              fragmentShader,
              program;
    
    

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

            node[write + 'y'] =
              (
                ((node[read + 'y'] || 0) - this.y) * cos -
                ((node[read + 'x'] || 0) - this.x) * sin
              ) / this.ratio + (options.height || 0) / 2;
      prototypes/express/src/console/sigma/src/classes/sigma.classes.camera.js on lines 105..109

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

      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

            node[write + 'x'] =
              (
                ((node[read + 'x'] || 0) - this.x) * cos +
                ((node[read + 'y'] || 0) - this.y) * sin
              ) / this.ratio + (options.width || 0) / 2;
      prototypes/express/src/console/sigma/src/classes/sigma.classes.camera.js on lines 110..114

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

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

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

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

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

      Refactorings

      Further Reading

      Function touchstarted has 69 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function touchstarted() {
            var that = this, dispatch = event.of(that, arguments), locations0 = {}, distance0 = 0, scale0, zoomName = ".zoom-" + d3.event.changedTouches[0].identifier, touchmove = "touchmove" + zoomName, touchend = "touchend" + zoomName, targets = [], subject = d3.select(that).on(mousedown, null).on(touchstart, started), dragRestore = d3_event_dragSuppress();
            d3_selection_interrupt.call(that);
            started();
            zoomstarted(dispatch);
      Severity: Major
      Found in lib/graph-printer/old/bower_components/d3/d3.js - About 2 hrs to fix

        Function initInitVars has 69 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            Overview.prototype.initInitVars = function() {
              this._parseCSV = {
                remainingBytes: [],
                nextCharCouldBeEscaped: false,
                value: false,
        Severity: Major
        Found in test-set/redis_key_overview-master/modules/keyoverview.js - About 2 hrs to fix

          Function initInitVars has 69 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  Overview.prototype.initInitVars = function () {
                    this._parseCSV = {
                      remainingBytes: [],
                      nextCharCouldBeEscaped: false,
                      value: false,
          Severity: Major
          Found in test-set/redis_key_overview-master/index-flx.js - About 2 hrs to fix

            Function print has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
            Open

            function print(ctx, skipRoot) {
            
              var i,
                  flx,
                  _flx,
            Severity: Minor
            Found in lib/js-printer/index.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

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

              function d3_time_parseFullYear(date, string, i) {
                d3_time_numberRe.lastIndex = 0;
                var n = d3_time_numberRe.exec(string.substring(i, i + 4));
                return n ? (date.y = +n[0], i + n[0].length) : -1;
              }
            Severity: Major
            Found in lib/graph-printer/old/bower_components/d3/d3.js and 7 other locations - About 2 hrs to fix
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2638..2642
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2675..2679
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2680..2684
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2685..2689
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2690..2694
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2695..2699
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2700..2704

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

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

              function d3_time_parseSeconds(date, string, i) {
                d3_time_numberRe.lastIndex = 0;
                var n = d3_time_numberRe.exec(string.substring(i, i + 2));
                return n ? (date.S = +n[0], i + n[0].length) : -1;
              }
            Severity: Major
            Found in lib/graph-printer/old/bower_components/d3/d3.js and 7 other locations - About 2 hrs to fix
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2638..2642
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2653..2657
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2675..2679
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2680..2684
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2685..2689
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2690..2694
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2700..2704

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

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

              function d3_time_parseHour24(date, string, i) {
                d3_time_numberRe.lastIndex = 0;
                var n = d3_time_numberRe.exec(string.substring(i, i + 2));
                return n ? (date.H = +n[0], i + n[0].length) : -1;
              }
            Severity: Major
            Found in lib/graph-printer/old/bower_components/d3/d3.js and 7 other locations - About 2 hrs to fix
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2638..2642
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2653..2657
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2675..2679
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2680..2684
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2690..2694
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2695..2699
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2700..2704

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

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

              function d3_time_parseWeekdayNumber(date, string, i) {
                d3_time_numberRe.lastIndex = 0;
                var n = d3_time_numberRe.exec(string.substring(i, i + 1));
                return n ? (date.w = +n[0], i + n[0].length) : -1;
              }
            Severity: Major
            Found in lib/graph-printer/old/bower_components/d3/d3.js and 7 other locations - About 2 hrs to fix
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2653..2657
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2675..2679
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2680..2684
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2685..2689
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2690..2694
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2695..2699
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2700..2704

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

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

              function d3_time_parseDayOfYear(date, string, i) {
                d3_time_numberRe.lastIndex = 0;
                var n = d3_time_numberRe.exec(string.substring(i, i + 3));
                return n ? (date.j = +n[0], i + n[0].length) : -1;
              }
            Severity: Major
            Found in lib/graph-printer/old/bower_components/d3/d3.js and 7 other locations - About 2 hrs to fix
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2638..2642
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2653..2657
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2675..2679
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2685..2689
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2690..2694
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2695..2699
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2700..2704

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

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

              function d3_time_parseDay(date, string, i) {
                d3_time_numberRe.lastIndex = 0;
                var n = d3_time_numberRe.exec(string.substring(i, i + 2));
                return n ? (date.d = +n[0], i + n[0].length) : -1;
              }
            Severity: Major
            Found in lib/graph-printer/old/bower_components/d3/d3.js and 7 other locations - About 2 hrs to fix
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2638..2642
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2653..2657
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2680..2684
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2685..2689
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2690..2694
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2695..2699
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2700..2704

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

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

              function d3_time_parseMilliseconds(date, string, i) {
                d3_time_numberRe.lastIndex = 0;
                var n = d3_time_numberRe.exec(string.substring(i, i + 3));
                return n ? (date.L = +n[0], i + n[0].length) : -1;
              }
            Severity: Major
            Found in lib/graph-printer/old/bower_components/d3/d3.js and 7 other locations - About 2 hrs to fix
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2638..2642
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2653..2657
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2675..2679
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2680..2684
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2685..2689
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2690..2694
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2695..2699

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

            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

            function edge(edge) {
              if (edge.id.toString() === "[object Object]") {
                console.log("this id is an object, should though", edge.type);
              }
            
            
            Severity: Major
            Found in prototypes/blender/lib/graphviz.js and 1 other location - About 2 hrs to fix
            prototypes/blender.old/lib/graphviz.js on lines 13..19

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

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

              function d3_time_parseMinutes(date, string, i) {
                d3_time_numberRe.lastIndex = 0;
                var n = d3_time_numberRe.exec(string.substring(i, i + 2));
                return n ? (date.M = +n[0], i + n[0].length) : -1;
              }
            Severity: Major
            Found in lib/graph-printer/old/bower_components/d3/d3.js and 7 other locations - About 2 hrs to fix
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2638..2642
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2653..2657
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2675..2679
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2680..2684
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2685..2689
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2695..2699
            lib/graph-printer/old/bower_components/d3/d3.js on lines 2700..2704

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

            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

            function edge(edge) {
              if (edge.id.toString() === "[object Object]") {
                console.log("this id is an object, should though", edge.type);
              }
            
            
            Severity: Major
            Found in prototypes/blender.old/lib/graphviz.js and 1 other location - About 2 hrs to fix
            prototypes/blender/lib/graphviz.js on lines 15..21

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

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

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

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

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

            Refactorings

            Further Reading

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

            function move(addr, n, callback) {
            
              output.send([n, ' ', JSON.stringify({
                addr: addr,
                fn: fx[addr].fn.toString()
            Severity: Major
            Found in prototypes/zeromq/src/flx-router.js and 1 other location - About 2 hrs to fix
            prototypes/zeromq/src/old/main.js on lines 93..101

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

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

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

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

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

            Refactorings

            Further Reading

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

            function moveFx(addr, n, callback) {
            
              output.send([n, ' ', JSON.stringify({
                addr: addr,
                fn: fx[addr].fn.toString()
            Severity: Major
            Found in prototypes/zeromq/src/old/main.js and 1 other location - About 2 hrs to fix
            prototypes/zeromq/src/flx-router.js on lines 109..117

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

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

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

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

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

            Refactorings

            Further Reading

            Severity
            Category
            Status
            Source
            Language