etnbrd/flx-compiler

View on GitHub

Showing 1,229 of 1,229 total issues

Function val has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    val: function( value ) {
        var ret, hooks, isFunction,
            elem = this[0];

        if ( !arguments.length ) {
Severity: Minor
Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

    Function renderCamera has 41 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      sigma.prototype.renderCamera = function(camera, force) {
        var i,
            l,
            a,
            self = this;
    Severity: Minor
    Found in prototypes/express/src/console/sigma/src/sigma.core.js - About 1 hr to fix

      Function parse has 41 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function parse(graph) {
            // Adapt the graph:
            arr = graph.nodes;
            for (i = 0, l = arr.length; i < l; i++) {
              obj = arr[i];

        Function _doubleClickHandler has 41 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function _doubleClickHandler(e) {
              var pos,
                  count,
                  ratio,
                  newRatio;

          Function cluster has 40 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            d3.layout.cluster = function() {
              var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = false;
              function cluster(d, i) {
                var nodes = hierarchy.call(this, d, i), root = nodes[0], previousNode, x = 0;
                d3_layout_hierarchyVisitAfter(root, function(node) {
          Severity: Minor
          Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 hr to fix

            Function d3_time_format has 40 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function d3_time_format(template) {
                  var n = template.length;
                  function format(date) {
                    var string = [], i = -1, j = 0, c, p, f;
                    while (++i < n) {
            Severity: Minor
            Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 hr to fix

              Function stop has 40 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  stop: function( type, clearQueue, gotoEnd ) {
                      var stopQueue = function( hooks ) {
                          var stop = hooks.stop;
                          delete hooks.stop;
                          stop( gotoEnd );
              Severity: Minor
              Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

                Function on has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                        var type, origFn;
                
                        // Types can be a map of types/handlers
                        if ( typeof types === "object" ) {
                Severity: Minor
                Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

                  Function extend has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  jQuery.extend = jQuery.fn.extend = function() {
                      var src, copyIsArray, copy, name, options, clone,
                          target = arguments[0] || {},
                          i = 1,
                          length = arguments.length,
                  Severity: Minor
                  Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

                    Function _getMemberCount has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        Overview.prototype._getMemberCount = function(keys, last) {
                          var _collection, _command, _commands, _i, _key, _len;
                          if (last) {
                            if (this.memberRequests.remaining === 0) {
                              this._getTopMembers(null, null, true);
                    Severity: Minor
                    Found in test-set/redis_key_overview-master/modules/keyoverview.js - About 1 hr to fix

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

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

                        Function node has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function node() {
                            cloud = zmq.socket('sub');
                            ctl = zmq.socket('req');
                            output = zmq.socket('pub');
                        
                        
                        Severity: Minor
                        Found in prototypes/zeromq/src/node.js - About 1 hr to fix

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

                          function register(name, fn) {
                            return b.expressionStatement(
                              b.callExpression(
                                b.memberExpression(b.identifier("flx"), b.identifier("register"), false),
                                [
                          Severity: Major
                          Found in prototypes/blender.old/lib/builders.js and 2 other locations - About 1 hr to fix
                          prototypes/blender/lib/templates.js on lines 32..42
                          prototypes/shreder/lib/builders.js on lines 47..57

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

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

                          function register(name, fn) {
                            return b.expressionStatement(
                              b.callExpression(
                                b.memberExpression(b.identifier("flx"), b.identifier("register"), false),
                                [
                          Severity: Major
                          Found in prototypes/blender/lib/templates.js and 2 other locations - About 1 hr to fix
                          prototypes/blender.old/lib/builders.js on lines 32..42
                          prototypes/shreder/lib/builders.js on lines 47..57

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

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

                          function register(name, fn) {
                            return b.expressionStatement(
                              b.callExpression(
                                b.memberExpression(b.identifier("flx"), b.identifier("register"), false),
                                [
                          Severity: Major
                          Found in prototypes/shreder/lib/builders.js and 2 other locations - About 1 hr to fix
                          prototypes/blender.old/lib/builders.js on lines 32..42
                          prototypes/blender/lib/templates.js on lines 32..42

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

                          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 writeFile(name, data) {
                            var path = "charts/" +  name + ".tex"
                          
                            process.stdout.write('\x1B[1m\x1B[36m>\x1B[35m>\x1B[39m\x1B[22m ' + path);
                            fs.writeFileSync(path, data);
                          Severity: Major
                          Found in prototypes/fluxions/bench/distribution/timer.js and 1 other location - About 1 hr to fix
                          prototypes/fluxions/bench/distribution/index.js on lines 136..142

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

                          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 writeFile(name, data) {
                            var path = "charts/" +  name + ".tex"
                          
                            process.stdout.write('\x1B[1m\x1B[36m>\x1B[35m>\x1B[39m\x1B[22m ' + path);
                            fs.writeFileSync(path, data);
                          Severity: Major
                          Found in prototypes/fluxions/bench/distribution/index.js and 1 other location - About 1 hr to fix
                          prototypes/fluxions/bench/distribution/timer.js on lines 28..34

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

                          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

                            register : function(flx, source) {
                              if (!MSG[source])
                                MSG[source] = {flx: [flx], arg: []}
                              else
                                MSG[source].flx.push(flx);
                          Severity: Major
                          Found in prototypes/express/src/old/fluxion.js and 1 other location - About 1 hr to fix
                          prototypes/express/src/old/fluxion.js on lines 62..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 67.

                          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 (y1) y1.domain(y0.range().map(function(y) {
                                  return (y - view.y) / view.k;
                                }).map(y0.invert));
                          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 1339..1341

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

                          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 (x1) x1.domain(x0.range().map(function(x) {
                                  return (x - view.x) / view.k;
                                }).map(x0.invert));
                          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 1342..1344

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

                          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