opsforgeio/cabot

View on GitHub

Showing 1,637 of 1,637 total issues

Function apportion has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      function apportion(node, previousSibling, ancestor) {
        if (previousSibling) {
          var vip = node, vop = node, vim = previousSibling, vom = node.parent.children[0], sip = vip._tree.mod, sop = vop._tree.mod, sim = vim._tree.mod, som = vom._tree.mod, shift;
          while (vim = d3_layout_treeRight(vim), vip = d3_layout_treeLeft(vip), vim && vip) {
            vom = d3_layout_treeLeft(vom);
Severity: Minor
Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

    Function diagonal has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      d3.svg.diagonal = function() {
        var source = d3_source, target = d3_target, projection = d3_svg_diagonalProjection;
        function diagonal(d, i) {
          var p0 = source.call(this, d, i), p3 = target.call(this, d, i), m = (p0.y + p3.y) / 2, p = [ p0, {
            x: p0.x,
    Severity: Minor
    Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

      Function d3_geo_centroidRingStart has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function d3_geo_centroidRingStart() {
          var λ00, φ00, x0, y0, z0;
          d3_geo_centroid.point = function(λ, φ) {
            λ00 = λ, φ00 = φ;
            d3_geo_centroid.point = nextPoint;
      Severity: Minor
      Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

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

          d3_transitionPrototype.attr = function(nameNS, value) {
            if (arguments.length < 2) {
              for (value in nameNS) this.attr(value, nameNS[value]);
              return this;
            }
        Severity: Minor
        Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

          Function d3_geom_voronoiCloseCells has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function d3_geom_voronoiCloseCells(extent) {
              var x0 = extent[0][0], x1 = extent[1][0], y0 = extent[0][1], y1 = extent[1][1], x2, y2, x3, y3, cells = d3_geom_voronoiCells, iCell = cells.length, cell, iHalfEdge, halfEdges, nHalfEdges, start, end;
              while (iCell--) {
                cell = cells[iCell];
                if (!cell || !cell.prepare()) continue;
          Severity: Minor
          Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

            Function gradients has 28 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                Line.gradients = function(coords) {
                  var coord, grad, i, nextCoord, prevCoord, _i, _len, _results;
                  grad = function(a, b) {
                    return (a.y - b.y) / (a.x - b.x);
                  };
            Severity: Minor
            Found in cabot/static/arachnys/js/morris.js - About 1 hr to fix

              Function position has 28 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function position(row, u, rect, flush) {
                    var i = -1, n = row.length, x = rect.x, y = rect.y, v = u ? round(row.area / u) : 0, o;
                    if (u == rect.dx) {
                      if (flush || v > rect.dy) v = rect.dy;
                      while (++i < n) {
              Severity: Minor
              Found in cabot/static/arachnys/js/d3.js - About 1 hr to fix

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

                  build: function() {
                
                    var element = this.element;
                    var graph = this.graph;
                
                
                Severity: Minor
                Found in cabot/static/arachnys/js/rickshaw.js - About 1 hr to fix

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

                    render: function(args) {
                  
                      args = args || {};
                  
                      var graph = this.graph;
                  Severity: Minor
                  Found in cabot/static/arachnys/js/rickshaw.js - About 1 hr to fix

                    Function onclick has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                    label.onclick = function(e){
                    
                                            var disableAllOtherLines = line.series.disabled;
                                            if ( ! disableAllOtherLines ) {
                                                    for ( var i = 0; i < self.legend.lines.length; i++ ) {
                    Severity: Minor
                    Found in cabot/static/arachnys/js/rickshaw.js - About 1 hr to fix

                      Function fix has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        fix: function( event ) {
                          if ( event[ jQuery.expando ] ) {
                            return event;
                          }
                      
                      
                      Severity: Minor
                      Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

                        Function finish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          finish: function( type ) {
                            if ( type !== false ) {
                              type = type || "fx";
                            }
                            return this.each(function() {
                        Severity: Minor
                        Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 1 hr to fix

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

                                return ("M" + ix0 + "," + iy0) + ("A" + r1 + "," + r1 + ",0," + this.is_long + ",0," + ix1 + "," + iy1) + ("L" + ox1 + "," + oy1) + ("A" + r2 + "," + r2 + ",0," + this.is_long + ",1," + ox0 + "," + oy0) + "Z";
                          Severity: Major
                          Found in cabot/static/arachnys/js/morris.js and 1 other location - About 1 hr to fix
                          cabot/static/arachnys/js/morris.js on lines 1710..1710

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

                          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

                              Chosen.prototype.clear_backstroke = function() {
                                if (this.pending_backstroke) {
                                  this.pending_backstroke.removeClass("search-choice-focus");
                                }
                                return this.pending_backstroke = null;
                          Severity: Major
                          Found in cabot/static/theme/js/chosen.jquery.js and 1 other location - About 1 hr to fix
                          cabot/static/theme/js/chosen.jquery.js on lines 762..767

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

                          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

                                return ("M" + ix0 + "," + iy0) + ("A" + r + "," + r + ",0," + this.is_long + ",0," + ix1 + "," + iy1);
                          Severity: Major
                          Found in cabot/static/arachnys/js/morris.js and 1 other location - About 1 hr to fix
                          cabot/static/arachnys/js/morris.js on lines 1704..1704

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

                          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

                                          return vl % 1 ? (values[Math.floor(vl)] + values[Math.floor(vl) - 1]) / 2 :  values[vl-1];
                          Severity: Major
                          Found in cabot/static/theme/js/jquery.sparkline.min.js and 1 other location - About 1 hr to fix
                          cabot/static/theme/js/jquery.sparkline.min.js on lines 486..486

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

                          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

                                  } else if (/^(ne)$/.test(a)) {
                                      that.size.width = newWidth;
                                      that.size.height = newHeight;
                                      that.position.top = op.top - oy;
                                  } else if (/^(sw)$/.test(a)) {
                          Severity: Major
                          Found in cabot/static/theme/js/jquery-ui.js and 1 other location - About 1 hr to fix
                          cabot/static/theme/js/jquery-ui.js on lines 3224..3233

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

                          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

                                  } else if (/^(sw)$/.test(a)) {
                                      that.size.width = newWidth;
                                      that.size.height = newHeight;
                                      that.position.left = op.left - ox;
                                  } else {
                          Severity: Major
                          Found in cabot/static/theme/js/jquery-ui.js and 1 other location - About 1 hr to fix
                          cabot/static/theme/js/jquery-ui.js on lines 3220..3233

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

                          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

                              Chosen.prototype.result_clear_highlight = function() {
                                if (this.result_highlight) {
                                  this.result_highlight.removeClass("highlighted");
                                }
                                return this.result_highlight = null;
                          Severity: Major
                          Found in cabot/static/theme/js/chosen.jquery.js and 1 other location - About 1 hr to fix
                          cabot/static/theme/js/chosen.jquery.js on lines 1094..1099

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

                          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

                                          return vl % 1 ? (values[Math.floor(vl)] + values[Math.floor(vl) - 1]) / 2 : values[vl-1];
                          Severity: Major
                          Found in cabot/static/theme/js/jquery.sparkline.min.js and 1 other location - About 1 hr to fix
                          cabot/static/theme/js/jquery.sparkline.min.js on lines 489..489

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

                          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