etnbrd/flx-compiler

View on GitHub

Showing 623 of 1,229 total issues

Function nest has 61 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  d3.nest = function() {
    var nest = {}, keys = [], sortKeys = [], sortValues, rollup;
    function map(mapType, array, depth) {
      if (depth >= keys.length) return rollup ? rollup.call(nest, array) : sortValues ? array.sort(sortValues) : array;
      var i = -1, n = array.length, key = keys[depth++], keyValue, object, setter, valuesByKey = new d3_Map(), values;
Severity: Major
Found in lib/graph-printer/old/bower_components/d3/d3.js - About 2 hrs to fix

    Function exports has 61 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    module.exports = function(grunt) {
      grunt.initConfig({
        clean: ['coverage'],
        jshint: {
          files: src
    Severity: Major
    Found in test-set/express-couchUser-master/Gruntfile.js - About 2 hrs to fix

      Function exports has 61 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      module.exports = function(options) {
        var cipher = encryptor(options.encryptionSecret);
        var oauth  = getOAuth();
        var router = new express.Router();
      
      
      Severity: Major
      Found in test-set/node-heroku-bouncer-master/lib/router.js - About 2 hrs to fix

        Function extractUp has 61 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

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

          Function addEdge has 61 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              addEdge: function(edge, source, target, data, i, prefix, settings) {
                var w = (edge[prefix + 'size'] || 1) / 2,
                    x1 = source[prefix + 'x'],
                    y1 = source[prefix + 'y'],
                    x2 = target[prefix + 'x'],

            Function extractUp has 61 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

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

              Function registerId has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
              Open

              FnScope.prototype.registerId = function(id) {
                if (id.name) {
              
                  function findVar(scope, name) {
                    for (var _var in scope._var) {
              Severity: Minor
              Found in prototypes/shreder/lib/constructors.js - About 2 hrs 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 Deferred has 60 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  Deferred: function( func ) {
                      var tuples = [
                              // action, add listener, listener list, final state
                              [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
                              [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
              Severity: Major
              Found in test-set/gifsockets-server-master/public/js/jquery.js - About 2 hrs to fix

                Function d3_scale_log has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  function d3_scale_log(linear, base, positive, domain) {
                    function log(x) {
                      return (positive ? Math.log(x < 0 ? 0 : x) : -Math.log(x > 0 ? 0 : -x)) / Math.log(base);
                    }
                    function pow(x) {
                Severity: Major
                Found in lib/graph-printer/old/bower_components/d3/d3.js - About 2 hrs to fix

                  Function clipLine has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function clipLine(listener) {
                        var point0, c0, v0, v00, clean;
                        return {
                          lineStart: function() {
                            v00 = v0 = false;
                  Severity: Major
                  Found in lib/graph-printer/old/bower_components/d3/d3.js - About 2 hrs to fix

                    Function CHILD has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                            "CHILD": function( type, what, argument, first, last ) {
                                var simple = type.slice( 0, 3 ) !== "nth",
                                    forward = type.slice( -4 ) !== "last",
                                    ofType = what === "of-type";
                    
                    
                    Severity: Major
                    Found in test-set/gifsockets-server-master/public/js/jquery.js - About 2 hrs to fix

                      Function setupDrop has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function setupDrop(dropbox, opts) {
                      
                              if (!FileReaderJS.enabled) {
                                  return;
                              }
                      Severity: Major
                      Found in test-set/gifsockets-server-master/public/js/filereader.js - About 2 hrs to fix

                        Function _getStats has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          function _getStats(v1, v2) {
                            var a,
                                k,
                                i,
                                l,
                        Severity: Major
                        Found in prototypes/express/src/console/sigma/src/conrad.js - About 2 hrs to fix

                          Consider simplifying this complex logical expression.
                          Open

                                                  if ( forward && useCache ) {
                                                      // Seek `elem` from a previously-cached index
                                                      outerCache = parent[ expando ] || (parent[ expando ] = {});
                                                      cache = outerCache[ type ] || [];
                                                      nodeIndex = cache[0] === dirruns && cache[1];
                          Severity: Critical
                          Found in test-set/gifsockets-server-master/public/js/jquery.js - About 2 hrs to fix

                            Function tick has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                force.tick = function() {
                                  if ((alpha *= .99) < .005) {
                                    event.end({
                                      type: "end",
                                      alpha: alpha = 0
                            Severity: Major
                            Found in lib/graph-printer/old/bower_components/d3/d3.js - About 2 hrs to fix

                              Function init has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  init: function( selector, context, rootjQuery ) {
                                      var match, elem;
                              
                                      // HANDLE: $(""), $(null), $(undefined), $(false)
                                      if ( !selector ) {
                              Severity: Major
                              Found in test-set/gifsockets-server-master/public/js/jquery.js - About 2 hrs to fix

                                Function bootstrap has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    function bootstrap(app, iop) {
                                        var io;
                                        if (!iop) {
                                            var server = app.listen(app.get('port'));
                                
                                
                                Severity: Major
                                Found in test-set/Moonridge-master/main.js - About 2 hrs to fix

                                  Function build has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function build(tree) {
                                  
                                  
                                    _down = {};
                                    _up = {};
                                  Severity: Major
                                  Found in prototypes/blender.old/lib/build.js - About 2 hrs to fix

                                    Function addRenderer has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      sigma.prototype.addRenderer = function(options) {
                                        var id,
                                            fn,
                                            camera,
                                            renderer,
                                    Severity: Major
                                    Found in prototypes/express/src/console/sigma/src/sigma.core.js - About 2 hrs to fix

                                      Function extractDown has 58 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function extractDown(tree, id) {
                                      
                                        var _n = {};
                                        var __n = {};
                                        var _d = {};
                                      Severity: Major
                                      Found in prototypes/blender/lib/extract.js - About 2 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language