etnbrd/flx-compiler

View on GitHub

Showing 1,229 of 1,229 total issues

Function tree has 114 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  d3.layout.tree = function() {
    var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = null;
    function tree(d, i) {
      var nodes = hierarchy.call(this, d, i), root0 = nodes[0], root1 = wrapTree(root0);
      d3_layout_hierarchyVisitAfter(root1, firstWalk), root1.parent.m = -root1.z;
Severity: Major
Found in lib/graph-printer/old/bower_components/d3/d3.js - About 4 hrs to fix

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

      tree.deps.forEach(function(dep) {
        for (var id in _n) {
          if (dep.id === id && dep.type !== "Before") {
            _n[dep.id] = {};
            _n[dep.to] = {};
    Severity: Major
    Found in prototypes/blender/lib/extract.js and 1 other location - About 4 hrs to fix
    prototypes/blender.old/lib/extraction.js on lines 30..38

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

    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

      tree.deps.forEach(function(dep) {
        for (var id in _n) {
          if (dep.to === id && dep.type !== "Before") {
            __n[dep.id] = {};
            __n[dep.to] = {};
    Severity: Major
    Found in prototypes/blender.old/lib/extraction.js and 1 other location - About 4 hrs to fix
    prototypes/blender/lib/extract.js on lines 59..67

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

    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

      tree.deps.forEach(function(dep) {
        for (var id in _n) {
          if (dep.to === id && dep.type !== "Before") {
            __n[dep.id] = {};
            __n[dep.to] = {};
    Severity: Major
    Found in prototypes/blender/lib/extract.js and 1 other location - About 4 hrs to fix
    prototypes/blender.old/lib/extraction.js on lines 43..51

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

    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

      tree.deps.forEach(function(dep) {
        for (var id in _n) {
          if (dep.id === id && dep.type !== "Before") {
            _n[dep.id] = {};
            _n[dep.to] = {};
    Severity: Major
    Found in prototypes/blender.old/lib/extraction.js and 1 other location - About 4 hrs to fix
    prototypes/blender/lib/extract.js on lines 46..54

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

    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 render has 112 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      sigma.renderers.canvas.prototype.render = function(options) {
        options = options || {};
    
        var a,
            i,

      Function chord has 111 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        d3.layout.chord = function() {
          var chord = {}, chords, groups, matrix, n, padding = 0, sortGroups, sortSubgroups, sortChords;
          function relayout() {
            var subgroups = {}, groupSums = [], groupIndex = d3.range(n), subgroupIndex = [], k, x, x0, i, j;
            chords = [];
      Severity: Major
      Found in lib/graph-printer/old/bower_components/d3/d3.js - About 4 hrs to fix

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

          $.fn.tooltip = function ( option ) {
            return this.each(function () {
              var $this = $(this)
                , data = $this.data('tooltip')
                , options = typeof option == 'object' && option
        Severity: Major
        Found in test-set/gifsockets-server-master/public/js/bootstrap.js and 4 other locations - About 4 hrs to fix
        test-set/gifsockets-server-master/public/js/bootstrap.js on lines 1496..1504
        test-set/gifsockets-server-master/public/js/bootstrap.js on lines 1650..1658
        test-set/gifsockets-server-master/public/js/bootstrap.js on lines 2124..2132
        test-set/gifsockets-server-master/public/js/bootstrap.js on lines 2236..2244

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

        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

                for (i = 0, l = a.length; i < l; i++)
                  if (this.settings('skipErrors'))
                    try {
                      a[i].render();
                    } catch (e) {
        Severity: Major
        Found in prototypes/express/src/console/sigma/src/sigma.core.js and 1 other location - About 4 hrs to fix
        prototypes/express/src/console/sigma/src/sigma.core.js on lines 539..550

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

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

          $.fn.typeahead = function (option) {
            return this.each(function () {
              var $this = $(this)
                , data = $this.data('typeahead')
                , options = typeof option == 'object' && option
        Severity: Major
        Found in test-set/gifsockets-server-master/public/js/bootstrap.js and 4 other locations - About 4 hrs to fix
        test-set/gifsockets-server-master/public/js/bootstrap.js on lines 1377..1385
        test-set/gifsockets-server-master/public/js/bootstrap.js on lines 1496..1504
        test-set/gifsockets-server-master/public/js/bootstrap.js on lines 1650..1658
        test-set/gifsockets-server-master/public/js/bootstrap.js on lines 2236..2244

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

        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

              for (i = 0, l = a.length; i < l; i++)
                if (this.settings('skipErrors'))
                  try {
                    a[i].render();
                  } catch (e) {
        Severity: Major
        Found in prototypes/express/src/console/sigma/src/sigma.core.js and 1 other location - About 4 hrs to fix
        prototypes/express/src/console/sigma/src/sigma.core.js on lines 554..567

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

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

          $.fn.scrollspy = function (option) {
            return this.each(function () {
              var $this = $(this)
                , data = $this.data('scrollspy')
                , options = typeof option == 'object' && option
        Severity: Major
        Found in test-set/gifsockets-server-master/public/js/bootstrap.js and 4 other locations - About 4 hrs to fix
        test-set/gifsockets-server-master/public/js/bootstrap.js on lines 1377..1385
        test-set/gifsockets-server-master/public/js/bootstrap.js on lines 1496..1504
        test-set/gifsockets-server-master/public/js/bootstrap.js on lines 2124..2132
        test-set/gifsockets-server-master/public/js/bootstrap.js on lines 2236..2244

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

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

          $.fn.popover = function (option) {
            return this.each(function () {
              var $this = $(this)
                , data = $this.data('popover')
                , options = typeof option == 'object' && option
        Severity: Major
        Found in test-set/gifsockets-server-master/public/js/bootstrap.js and 4 other locations - About 4 hrs to fix
        test-set/gifsockets-server-master/public/js/bootstrap.js on lines 1377..1385
        test-set/gifsockets-server-master/public/js/bootstrap.js on lines 1650..1658
        test-set/gifsockets-server-master/public/js/bootstrap.js on lines 2124..2132
        test-set/gifsockets-server-master/public/js/bootstrap.js on lines 2236..2244

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

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

          $.fn.affix = function (option) {
            return this.each(function () {
              var $this = $(this)
                , data = $this.data('affix')
                , options = typeof option == 'object' && option
        Severity: Major
        Found in test-set/gifsockets-server-master/public/js/bootstrap.js and 4 other locations - About 4 hrs to fix
        test-set/gifsockets-server-master/public/js/bootstrap.js on lines 1377..1385
        test-set/gifsockets-server-master/public/js/bootstrap.js on lines 1496..1504
        test-set/gifsockets-server-master/public/js/bootstrap.js on lines 1650..1658
        test-set/gifsockets-server-master/public/js/bootstrap.js on lines 2124..2132

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

        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

        flx.register("output", function(msg){
          if (msg.res) {
            // console.log(">> REG " + msg.cid);
            this.cid[msg.cid] = msg.res;
          } else {
        Severity: Major
        Found in prototypes/fluxions/lib/web_setTimeout.js and 1 other location - About 4 hrs to fix
        prototypes/fluxions/lib/web.js on lines 7..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 122.

        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

        Context.prototype.leaveScope = function(n) {
          n.scopes.forEach(function(scope) {
            scope = this._scopeStack.pop();
            this.currentScope = this._scopeStack[this._scopeStack.length - 1];
            log.leave('Leave scope ' + h.getScopeName(scope));
        Severity: Major
        Found in lib/mapper/context.js and 1 other location - About 4 hrs to fix
        lib/analyzer/context.js on lines 328..334

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

        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

        flx.register("output", function(msg){
          if (msg.res) {
            // console.log(">> REG " + msg.cid);
            this.cid[msg.cid] = msg.res;
          } else {
        Severity: Major
        Found in prototypes/fluxions/lib/web.js and 1 other location - About 4 hrs to fix
        prototypes/fluxions/lib/web_setTimeout.js on lines 7..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 122.

        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

        Context.prototype.leaveScope = function(n) {
          n.scopes.forEach(function(scope) {
            scope = this._scopeStack.pop();
            this.currentScope = this._scopeStack[this._scopeStack.length - 1];
            log.leave('Leave scope ' + h.getScopeName(scope));
        Severity: Major
        Found in lib/analyzer/context.js and 1 other location - About 4 hrs to fix
        lib/mapper/context.js on lines 79..85

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

        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

        _types.BlockStatement = function(n, c) {
        
          var previous = undefined;
          var current = undefined;
        
        
        Severity: Major
        Found in prototypes/blender.old/lib/dependency.js and 1 other location - About 4 hrs to fix
        prototypes/blender.old/lib/dependency.js on lines 264..279

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

        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

        _types.VariableDeclaration = function(n, c) {
        
          var previous = undefined;
          var current = undefined;
        
        
        Severity: Major
        Found in prototypes/blender.old/lib/dependency.js and 1 other location - About 4 hrs to fix
        prototypes/blender.old/lib/dependency.js on lines 341..356

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

        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