etnbrd/flx-compiler

View on GitHub

Showing 1,229 of 1,229 total issues

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 = [],

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

                    function d3_geo_graticuleX(y0, y1, dy) {
                      var y = d3.range(y0, y1 - ε, dy).concat(y1);
                      return function(x) {
                        return y.map(function(y) {
                          return [ x, 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 4473..4480

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

                  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

                                swinging =
                                  Math.sqrt(Math.pow(n.fa2.old_dx - n.fa2.dx, 2) +
                                  Math.pow(n.fa2.old_dy - n.fa2.dy, 2));
                  prototypes/express/src/console/sigma/plugins/sigma.layout.forceAtlas2/sigma.layout.forceAtlas2.js on lines 253..258

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

                  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

                                totalEffectiveTraction += n.fa2.mass *
                                  0.5 *
                                  Math.sqrt(
                                    Math.pow(n.fa2.old_dx + n.fa2.dx, 2) +
                                    Math.pow(n.fa2.old_dy + n.fa2.dy, 2)
                  prototypes/express/src/console/sigma/plugins/sigma.layout.forceAtlas2/sigma.layout.forceAtlas2.js on lines 246..248

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

                  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 d3_geo_graticuleY(x0, x1, dx) {
                      var x = d3.range(x0, x1 - ε, dx).concat(x1);
                      return function(y) {
                        return x.map(function(x) {
                          return [ x, 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 4465..4472

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

                  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

                  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
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language