etnbrd/flx-compiler

View on GitHub

Showing 1,229 of 1,229 total issues

Function area has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  quad.prototype.area = function(rect) {
    var serialized = JSON.stringify(rect),
        collisionFunc,
        rectData;

    Function enter has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      enter: function(n, c) {
    
        // TODO this is bad design
        var _c = {id: ""};
        map(n.callee, _getId(_c));
    Severity: Minor
    Found in prototypes/shreder/lib/transform.js - About 1 hr to fix

      Function bench has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function bench(ITERATION) {
        // LOOP
        start = time.now();
        for(var i=0; i < ITERATION; i++){
          loop();
      Severity: Minor
      Found in prototypes/fluxions/bench/distribution/setTimeout.js - About 1 hr to fix

        Consider simplifying this complex logical expression.
        Open

          if (ids.length === 2 &&
          (    this.postTriggers.indexOf(ids[0]) > -1 && expressRoutes.indexOf(ids[1]) > -1
            || this.postTriggers.indexOf(ids[0]) > -1 && fsMethods.indexOf(ids[1]) > -1)
          ||  ids.length === 1 &&
          (    this.postTriggers.indexOf(ids[0]) > -1)) {
        Severity: Major
        Found in lib/analyzer/triggers.js - About 1 hr to fix

          Consider simplifying this complex logical expression.
          Open

            if (ids.length === 2 &&
            (    this.startTriggers.indexOf(ids[0]) > -1 && expressRoutes.indexOf(ids[1]) > -1
              || this.startTriggers.indexOf(ids[0]) > -1 && fsMethods.indexOf(ids[1]) > -1)
            ||  ids.length === 1 &&
            (    this.startTriggers.indexOf(ids[0]) > -1)) {
          Severity: Major
          Found in lib/analyzer/triggers.js - About 1 hr to fix

            Function insert has 8 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                  function insert(n, d, x, y, x1, y1, x2, y2) {
            Severity: Major
            Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 hr to fix

              Function insertChild has 8 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                    function insertChild(n, d, x, y, x1, y1, x2, y2) {
              Severity: Major
              Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 hr to fix

                Consider simplifying this complex logical expression.
                Open

                if ( jQuery.expr && jQuery.expr.filters ) {
                    jQuery.expr.filters.hidden = function( elem ) {
                        // Support: Opera <= 12.12
                        // Opera reports offsetWidths and offsetHeights less than zero on some elements
                        return elem.offsetWidth <= 0 && elem.offsetHeight <= 0 ||
                Severity: Major
                Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

                  Consider simplifying this complex logical expression.
                  Open

                                  if ( unit !== "px" && start ) {
                                      // Iteratively approximate from a nonzero starting point
                                      // Prefer the current property, because this process will be trivial if it uses the same units
                                      // Fallback to end or a simple constant
                                      start = jQuery.css( tween.elem, prop, true ) || end || 1;
                  Severity: Major
                  Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

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

                      console.log("  >>> loop : " + ITERATION + " iteration" + ((ITERATION>1)?'s':'' ) + ", average of " + ((end - start)/ITERATION) + "μs" )
                    Severity: Major
                    Found in prototypes/fluxions/bench/distribution/setTimeout.js and 1 other location - About 1 hr to fix
                    prototypes/fluxions/bench/distribution/setTimeout.js on lines 102..102

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

                    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(err, count){
                            if (err) { return next(err); }
                            res.send((count===1)?{msg:'success'}:{msg:'error'});
                          }); 
                    Severity: Major
                    Found in test-set/node.tingo-rest-master/index.js and 1 other location - About 1 hr to fix
                    test-set/node.tingo-rest-master/index.js on lines 63..66

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

                    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 location(p) {
                          return [ (p[0] - view.x) / view.k, (p[1] - view.y) / view.k ];
                        }
                    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 1327..1329

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

                    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

                      console.log("  >>> State machine with loop : " + ITERATION + " iteration" + ((ITERATION>1)?'s':'' ) + ", average of " + ((end - start)/ITERATION) + "μs" )
                    Severity: Major
                    Found in prototypes/fluxions/bench/distribution/setTimeout.js and 1 other location - About 1 hr to fix
                    prototypes/fluxions/bench/distribution/setTimeout.js on lines 92..92

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

                    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 point(l) {
                          return [ l[0] * view.k + view.x, l[1] * view.k + view.y ];
                        }
                    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 1324..1326

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

                    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

                          this.timeout = setTimeout(function() {
                            if (self.hoverState == 'in') self.show()
                          }, self.options.delay.show)
                    Severity: Major
                    Found in test-set/gifsockets-server-master/public/js/bootstrap.js and 1 other location - About 1 hr to fix
                    test-set/gifsockets-server-master/public/js/bootstrap.js on lines 1158..1160

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

                    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

                          this.timeout = setTimeout(function() {
                            if (self.hoverState == 'out') self.hide()
                          }, self.options.delay.hide)
                    Severity: Major
                    Found in test-set/gifsockets-server-master/public/js/bootstrap.js and 1 other location - About 1 hr to fix
                    test-set/gifsockets-server-master/public/js/bootstrap.js on lines 1146..1148

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

                    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(err, count){
                            if (err) { return next(err); }
                            res.send((count===1)?{msg:'success'}:{msg:'error'});
                          }); 
                    Severity: Major
                    Found in test-set/node.tingo-rest-master/index.js and 1 other location - About 1 hr to fix
                    test-set/node.tingo-rest-master/index.js on lines 74..77

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

                    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

                        force.linkStrength = function(x) {
                          if (!arguments.length) return linkStrength;
                          linkStrength = typeof x === "function" ? x : +x;
                          return force;
                        };
                    Severity: Major
                    Found in lib/graph-printer/old/bower_components/d3/d3.js and 2 other locations - About 55 mins to fix
                    lib/graph-printer/old/bower_components/d3/d3.js on lines 6167..6171
                    lib/graph-printer/old/bower_components/d3/d3.js on lines 6183..6187

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

                    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

                        force.linkDistance = function(x) {
                          if (!arguments.length) return linkDistance;
                          linkDistance = typeof x === "function" ? x : +x;
                          return force;
                        };
                    Severity: Major
                    Found in lib/graph-printer/old/bower_components/d3/d3.js and 2 other locations - About 55 mins to fix
                    lib/graph-printer/old/bower_components/d3/d3.js on lines 6173..6177
                    lib/graph-printer/old/bower_components/d3/d3.js on lines 6183..6187

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

                    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

                        force.charge = function(x) {
                          if (!arguments.length) return charge;
                          charge = typeof x === "function" ? x : +x;
                          return force;
                        };
                    Severity: Major
                    Found in lib/graph-printer/old/bower_components/d3/d3.js and 2 other locations - About 55 mins to fix
                    lib/graph-printer/old/bower_components/d3/d3.js on lines 6167..6171
                    lib/graph-printer/old/bower_components/d3/d3.js on lines 6173..6177

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

                    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