etnbrd/flx-compiler

View on GitHub

Showing 623 of 1,229 total issues

Function d3_scale_pow has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function d3_scale_pow(linear, exponent, domain) {
    var powp = d3_scale_powPow(exponent), powb = d3_scale_powPow(1 / exponent);
    function scale(x) {
      return linear(powp(x));
    }
Severity: Minor
Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 hr to fix

    Function fixCloneNodeIssues has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function fixCloneNodeIssues( src, dest ) {
        var nodeName, e, data;
    
        // We do not need to do anything for non-Elements
        if ( dest.nodeType !== 1 ) {
    Severity: Minor
    Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

      Function attr has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          attr: function( elem, name, value ) {
              var hooks, notxml, ret,
                  nType = elem.nodeType;
      
              // don't get/set attributes on text, comment and attribute nodes
      Severity: Minor
      Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

        Function setOffset has 32 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            setOffset: function( elem, options, i ) {
                var position = jQuery.css( elem, "position" );
        
                // set position first, in-case top/left are set even on static elem
                if ( position === "static" ) {
        Severity: Minor
        Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

          Function load has 32 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          jQuery.fn.load = function( url, params, callback ) {
              if ( typeof url !== "string" && _load ) {
                  return _load.apply( this, arguments );
              }
          
          
          Severity: Minor
          Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

            Function VariableDeclarator has 32 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              this.VariableDeclarator = function(tree, chain, node) {
            
                var upwards = chain.deps.find(function(dep) {
                  return dep.to === node.id && dep.type === "Assignment";
                })
            Severity: Minor
            Found in prototypes/blender.old/index.js - About 1 hr to fix

              Function _createKeyOverview has 32 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      Overview.prototype._createKeyOverview = function () {
                        var _finCreating, _keytemplatedata;
                        this.emit('initStatusUpdate', 'Starting to parse information into html pages.');
                        /*msg._sign.*/_finCreating = function (_this) {
                          return function () {
              Severity: Minor
              Found in test-set/redis_key_overview-master/index-flx.js - About 1 hr to fix

                Function frame has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function frame() {
                  s.graph.computePhysics();
                  s.refresh();
                
                  if (s.graph.nodes().length) {
                Severity: Minor
                Found in prototypes/express/src/console/script.js - About 1 hr to fix

                  Function parseColor has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    function parseColor(val) {
                      if (_cache[val])
                        return _cache[val];
                  
                      var result = [0, 0, 0];

                    Function applyView has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      sigma.classes.camera.prototype.applyView = function(read, write, options) {
                        options = options || {};
                        write = write !== undefined ? write : this.prefix;
                        read = read !== undefined ? read : this.readPrefix;
                    
                    

                      Function boolean has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                      Open

                        , 'boolean': function(name) {
                            return function(vals, cb) {
                              if (vals.length > 1) {
                                cb(new Error("The parameter only accepts one value"))
                              } else {
                      Severity: Minor
                      Found in test-set/express-endpoint-master/lib/rules.js - About 1 hr to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      Function walk has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                      Open

                      function walk(o, cb) {
                      
                        function _walk_o (o) {
                          // console.log(">> walking object");
                          for (var i in o) {
                      Severity: Minor
                      Found in prototypes/blender.old/lib/traverse.js - About 1 hr to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      Function post has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                      Open

                      function post(msg) {
                      
                        function postMsg(msg) {
                          hooks.post(msg, flx_inst[msg.dest].scps, res.dest);
                          setTimeout(post, 0, msg);
                      Severity: Minor
                      Found in prototypes/express/src/fluxions.js - About 1 hr to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      Function _maper has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                      Open

                      function _maper() {
                      
                        function map(n, it) {
                      
                          if (it.enter)
                      Severity: Minor
                      Found in prototypes/shreder/lib/traverse.js - About 1 hr to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      Function walk has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                      Open

                      function walk(o, cb) {
                      
                        function _walk_o (o) {
                          // console.log(">> walking object");
                          for (var i in o) {
                      Severity: Minor
                      Found in prototypes/recast/main.js - About 1 hr to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      Function post has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                      Open

                      function post(msg) {
                      
                        function postMsg(msg) {
                          if (!msg)
                            return false;
                      Severity: Minor
                      Found in prototypes/fluxions/lib/flx_setTimeout.js - About 1 hr to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      Function post has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                      Open

                      function post(msg) {
                      
                        function postMsg(msg) {
                          if (!msg)
                            return false;
                      Severity: Minor
                      Found in prototypes/fluxions/lib/flx_nextTick.js - About 1 hr to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      Function post has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                      Open

                      function post(msg) {
                      
                        function postMsg(msg) {
                          if (!msg)
                            return false;
                      Severity: Minor
                      Found in prototypes/fluxions/lib/flx.js - About 1 hr to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      Function walk has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                      Open

                      function walk(o, cb) {
                      
                          function _walk_o (o) {
                              // console.log(">> walking object");
                              for (var i in o) {
                      Severity: Minor
                      Found in prototypes/esprima/main.js - About 1 hr to fix

                      Cognitive Complexity

                      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                      A method's cognitive complexity is based on a few simple rules:

                      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                      • Code is considered more complex for each "break in the linear flow of the code"
                      • Code is considered more complex when "flow breaking structures are nested"

                      Further reading

                      Function d3_scale_quantile has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        function d3_scale_quantile(domain, range) {
                          var thresholds;
                          function rescale() {
                            var k = 0, q = range.length;
                            thresholds = [];
                      Severity: Minor
                      Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 hr to fix
                        Severity
                        Category
                        Status
                        Source
                        Language