etnbrd/flx-compiler

View on GitHub

Showing 1,229 of 1,229 total issues

Consider simplifying this complex logical expression.
Open

                if ( ( mappedTypes || origType === handleObj.origType ) &&
                    ( !handler || handler.guid === handleObj.guid ) &&
                    ( !tmp || tmp.test( handleObj.namespace ) ) &&
                    ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
                    handlers.splice( j, 1 );
Severity: Critical
Found in test-set/gifsockets-server-master/public/js/jquery.js - About 2 hrs to fix

    Function extractUpOnly has 50 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function extractUpOnly(tree, id) {
    
      var _n = {};
      var __n = {};
      var _d = {};
    Severity: Minor
    Found in prototypes/blender.old/lib/extraction.js - About 2 hrs to fix

      Function MRQuery has 50 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      module.exports = function MRQuery(model, clientQuery) {
          var query = model.find();
      
          //query option object,where we index by method, not by invocation order, useful later when we reexecute the query
          var opts = {populate:[]};
      Severity: Minor
      Found in test-set/Moonridge-master/query-builder.js - About 2 hrs to fix

        Function graph has 50 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function graph(type, options) {
          this._options = options;
          this._output_pre = _bgraph + "\\begin{" + type + "}";
          this._output_post = "\\end{" + type + "}\n"+ _egraph;
          this._plots = [];
        Severity: Minor
        Found in prototypes/fluxions/bench/diffInstructions/pgfplots.js - About 2 hrs to fix

          Function extractUpOnly has 50 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function extractUpOnly(tree, id) {
          
            var _n = {};
            var __n = {};
            var _d = {};
          Severity: Minor
          Found in prototypes/blender/lib/extract.js - About 2 hrs to fix

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

                    } else {
                      if (!va) va = {
                        x: x1,
                        y: fm * x1 + fb
                      }; else if (va.x < x0) return;
            Severity: Major
            Found in lib/graph-printer/old/bower_components/d3/d3.js and 1 other location - About 2 hrs to fix
            lib/graph-printer/old/bower_components/d3/d3.js on lines 5072..5081

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 75.

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

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

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

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

            Refactorings

            Further Reading

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

                    } else {
                      if (!va) va = {
                        x: (y1 - fb) / fm,
                        y: y1
                      }; else if (va.y < y0) return;
            Severity: Major
            Found in lib/graph-printer/old/bower_components/d3/d3.js and 1 other location - About 2 hrs to fix
            lib/graph-printer/old/bower_components/d3/d3.js on lines 5052..5061

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 75.

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

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

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

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

            Refactorings

            Further Reading

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

                    if (lx > rx) {
                      if (!va) va = {
                        x: (y0 - fb) / fm,
                        y: y0
                      }; else if (va.y >= y1) return;
            Severity: Major
            Found in lib/graph-printer/old/bower_components/d3/d3.js and 1 other location - About 2 hrs to fix
            lib/graph-printer/old/bower_components/d3/d3.js on lines 5061..5070

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 75.

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

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

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

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

            Refactorings

            Further Reading

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

                    if (ly < ry) {
                      if (!va) va = {
                        x: x0,
                        y: fm * x0 + fb
                      }; else if (va.x >= x1) return;
            Severity: Major
            Found in lib/graph-printer/old/bower_components/d3/d3.js and 1 other location - About 2 hrs to fix
            lib/graph-printer/old/bower_components/d3/d3.js on lines 5081..5090

            Duplicated Code

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

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

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

            Tuning

            This issue has a mass of 75.

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

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

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

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

            Refactorings

            Further Reading

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

            var colorFactory = function(prefix, suffix) {
              var colorFn = function(string) {
                if (typeof(string) === 'function') {
                  return function(string_) {
                    return colorFn(string(string_));
            Severity: Major
            Found in prototypes/shreder/lib/log.js and 2 other locations - About 1 hr to fix
            lib/lib/log.js on lines 1..11
            prototypes/express/src/hooks.js on lines 7..17

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

            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 d3_cross2d(a, b, c) {
                return (b[0] - a[0]) * (c[1] - a[1]) - (b[1] - a[1]) * (c[0] - a[0]);
              }
            Severity: Major
            Found in lib/graph-printer/old/bower_components/d3/d3.js and 1 other location - About 1 hr to fix
            lib/graph-printer/old/bower_components/d3/d3.js on lines 4785..4787

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

            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 d3_geom_polygonInside(p, a, b) {
                return (b[0] - a[0]) * (p[1] - a[1]) < (b[1] - a[1]) * (p[0] - a[0]);
              }
            Severity: Major
            Found in lib/graph-printer/old/bower_components/d3/d3.js and 1 other location - About 1 hr to fix
            lib/graph-printer/old/bower_components/d3/d3.js on lines 1189..1191

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

            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 (a = this.edgesOnScreen, i = 0, l = a.length; i < l; i++) {
                      o = a[i];
                      (renderers[o.type] || renderers.def)(
                        o,
                        graph.nodes(o.source),
            prototypes/express/src/console/sigma/src/renderers/sigma.renderers.canvas.js on lines 202..211

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

            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

            var colorFactory = function(prefix, suffix) {
                var colorFn = function(toPrint) {
                    if (typeof(toPrint) === 'function') {
                        return function(fulfillerParameter) {
                            return colorFn(toPrint(fulfillerParameter));
            Severity: Major
            Found in lib/lib/log.js and 2 other locations - About 1 hr to fix
            prototypes/shreder/lib/log.js on lines 1..11
            prototypes/express/src/hooks.js on lines 7..17

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

            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 (i = start; i < end; i++) {
                        o = edges[i];
                        (renderers[o.type] || renderers.def)(
                          o,
                          graph.nodes(o.source),
            prototypes/express/src/console/sigma/src/renderers/sigma.renderers.canvas.js on lines 230..239

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

            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

            var colorFactory = function(prefix, suffix) {
              var colorFn = function(string) {
                if (typeof(string) === 'function') {
                  return function(string_) {
                    return colorFn(string(string_));
            Severity: Major
            Found in prototypes/express/src/hooks.js and 2 other locations - About 1 hr to fix
            prototypes/shreder/lib/log.js on lines 1..11
            lib/lib/log.js on lines 1..11

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

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

              function d3_time_scale(linear, methods, format) {
                function scale(x) {
                  return linear(x);
                }
                scale.invert = function(x) {
            Severity: Minor
            Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 hr to fix

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

              function internalRemoveData( elem, name, pvt ) {
                  if ( !jQuery.acceptData( elem ) ) {
                      return;
                  }
              
              
              Severity: Minor
              Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

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

                        Overview.prototype._getTopMembers = function (collection, type, last) {
                          var _element, _foundCount, _foundSize, _i, _j, _k, _len, _len1, _len2, _ref, _ref1, _topcountkey, _topsizekey;
                          if (last) {
                            this._createOverview();
                            return;
                Severity: Minor
                Found in test-set/redis_key_overview-master/index-flx.js - About 1 hr to fix

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

                      Overview.prototype._createOverview = function() {
                        var type, val, _ref;
                        this._templateDataParsed = this._parseDataForTemplate();
                        _ref = this._typePlurals;
                        for (type in _ref) {
                  Severity: Minor
                  Found in test-set/redis_key_overview-master/modules/keyoverview.js - About 1 hr to fix
                    Severity
                    Category
                    Status
                    Source
                    Language