etnbrd/flx-compiler

View on GitHub

Showing 623 of 1,229 total issues

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

    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/modules/keyoverview.js - About 1 hr to fix

      Function resampleRecursive has 47 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function resampleRecursive(stream) {
            var λ00, φ00, x00, y00, a00, b00, c00, λ0, x0, y0, a0, b0, c0;
            var resample = {
              point: point,
              lineStart: lineStart,
      Severity: Minor
      Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 hr to fix

        Function drag has 47 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          d3.behavior.drag = function() {
            var event = d3_eventDispatch(drag, "drag", "dragstart", "dragend"), origin = null, mousedown = dragstart(d3_noop, d3.mouse, d3_behavior_dragMouseSubject, "mousemove", "mouseup"), touchstart = dragstart(d3_behavior_dragTouchId, d3.touch, d3_behavior_dragTouchSubject, "touchmove", "touchend");
            function drag() {
              this.on("mousedown.drag", mousedown).on("touchstart.drag", touchstart);
            }
        Severity: Minor
        Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 hr to fix

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

          function graph(ctx) {
          
          
            var pack = d3.layout.squarepack();
                // TODO access exposed variables.
          Severity: Minor
          Found in lib/graph-printer/graph.js - About 1 hr to fix

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

            module.exports = function (grunt) {
              // Configure the project
              grunt.initConfig({
                jshint: {
                  client: ['public/js/main.js']
            Severity: Minor
            Found in test-set/gifsockets-server-master/Gruntfile.js - About 1 hr to fix

              Function _getKeySizeAndType has 47 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  Overview.prototype._getKeySizeAndType = function(keys, last) {
                    var _collection, _commands, _i, _key, _len;
                    if (last) {
                      if (this._totalKeyAmount <= this._timesRequested * this.options.multiLength) {
                        this.lastKeySizeAndTypeRequest = false;
              Severity: Minor
              Found in test-set/redis_key_overview-master/modules/keyoverview.js - About 1 hr to fix

                Function walkGraph has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function walkGraph(ast) {
                  walk(ast, function(o) {
                
                    if(o.type) {
                      types[o.type] = {};
                Severity: Minor
                Found in prototypes/recast/main.js - About 1 hr to fix

                  Function buildSubRegions has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    forceatlas2.Region.prototype.buildSubRegions = function() {
                      if (this.nodes.length > 1) {
                        var leftNodes = [],
                            rightNodes = [],
                            subregions = [],

                    Function d3_time_interval has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      function d3_time_interval(local, step, number) {
                        function round(date) {
                          var d0 = local(date), d1 = offset(d0, 1);
                          return date - d0 < d1 - date ? d0 : d1;
                        }
                    Severity: Minor
                    Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 hr to fix

                      Function pie has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        d3.layout.pie = function() {
                          var value = Number, sort = d3_layout_pieSortByValue, startAngle = 0, endAngle = τ;
                          function pie(data) {
                            var values = data.map(function(d, i) {
                              return +value.call(pie, d, i);
                      Severity: Minor
                      Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 hr to fix

                        Function generateTests has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        Timbit.prototype.generateTests = function(alltests) {
                          
                          // create combination of required parameters
                          var required = [];
                          for (var name in this.params) {
                        Severity: Minor
                        Found in test-set/timbits-master/lib/timbits.js - About 1 hr to fix

                          Function tokenize has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function tokenize( selector, parseOnly ) {
                              var matched, match, tokens, type,
                                  soFar, groups, preFilters,
                                  cached = tokenCache[ selector + " " ];
                          
                          
                          Severity: Minor
                          Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

                            Function render has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            var render = function(options) {
                              var config = Hash({
                                stylesheets: ['/endpoint/css/reset.css',
                                                '/endpoint/css/style.css'],
                                render_view: __dirname + '/../../views/response.jade' }).
                            Severity: Minor
                            Found in test-set/express-endpoint-master/lib/middleware/render.js - About 1 hr to fix

                              Function _doubleTapHandler has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

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

                                Function arrow has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  sigma.canvas.edges.arrow = function(edge, source, target, context, settings) {
                                    var color = edge.color,
                                        prefix = settings('prefix') || '',
                                        edgeColor = settings('edgeColor'),
                                        defaultNodeColor = settings('defaultNodeColor'),

                                  Function path has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    d3.geo.path = function() {
                                      var pointRadius = 4.5, projection, context, projectStream, contextStream, cacheStream;
                                      function path(object) {
                                        if (object) {
                                          if (typeof pointRadius === "function") contextStream.pointRadius(+pointRadius.apply(this, arguments));
                                  Severity: Minor
                                  Found in lib/graph-printer/old/bower_components/d3/d3.js - About 1 hr to fix

                                    Function test has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    Timbit.prototype.test = function(host, alltests, callback) {
                                      
                                      // generate dynamic list of test urls
                                      var tests = this.generateTests(alltests);
                                      
                                    Severity: Minor
                                    Found in test-set/timbits-master/lib/timbits.js - About 1 hr to fix

                                      Function select has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                      function select( selector, context, results, seed ) {
                                          var i, tokens, token, type, find,
                                              match = tokenize( selector );
                                      
                                          if ( !seed ) {
                                      Severity: Minor
                                      Found in test-set/gifsockets-server-master/public/js/jquery.js - About 1 hr to fix

                                        Function register has 45 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function register(name, fn, scope) {
                                        
                                          function _register(name, fn, scope) { 
                                            var _scope = b.objectExpression([]);
                                            if (scope) {
                                        Severity: Minor
                                        Found in lib/js-printer/builders.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language