opsforgeio/cabot

View on GitHub

Showing 840 of 1,637 total issues

Function _refreshValue has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    _refreshValue: function() {
        var lastValPercent, valPercent, value, valueMin, valueMax,
            oRange = this.options.range,
            o = this.options,
            that = this,
Severity: Major
Found in cabot/static/theme/js/jquery-ui.js - About 2 hrs to fix

    Function d3_geom_voronoiAddBeach has 52 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function d3_geom_voronoiAddBeach(site) {
        var x = site.x, directrix = site.y, lArc, rArc, dxl, dxr, node = d3_geom_voronoiBeaches._;
        while (node) {
          dxl = d3_geom_voronoiLeftBreakPoint(node, directrix) - x;
          if (dxl > ε) node = node.L; else {
    Severity: Major
    Found in cabot/static/arachnys/js/d3.js - About 2 hrs to fix

      Function drawXAxis has 52 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          Line.prototype.drawXAxis = function() {
            var drawLabel, l, labels, prevAngleMargin, prevLabelMargin, row, ypos, _i, _len, _results,
              _this = this;
            ypos = this.bottom + this.options.padding / 2;
            prevLabelMargin = null;
      Severity: Major
      Found in cabot/static/arachnys/js/morris.js - About 2 hrs to fix

        Function event has 52 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            brush.event = function(g) {
              g.each(function() {
                var event_ = event.of(this, arguments), extent1 = {
                  x: xExtent,
                  y: yExtent,
        Severity: Major
        Found in cabot/static/arachnys/js/d3.js - About 2 hrs to fix

          Function d3_geom_clipLine has 52 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function d3_geom_clipLine(x0, y0, x1, y1) {
              return function(line) {
                var a = line.a, b = line.b, ax = a.x, ay = a.y, bx = b.x, by = b.y, t0 = 0, t1 = 1, dx = bx - ax, dy = by - ay, r;
                r = x0 - ax;
                if (!dx && r > 0) return;
          Severity: Major
          Found in cabot/static/arachnys/js/d3.js - About 2 hrs to fix

            Function Time has 52 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            Rickshaw.Graph.Axis.Time = function(args) {
            
              var self = this;
            
              this.graph = args.graph;
            Severity: Major
            Found in cabot/static/arachnys/js/rickshaw.js - About 2 hrs to fix

              Function _fnSetObjectDataFn has 51 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function _fnSetObjectDataFn( mSource )
                  {
                    if ( mSource === null )
                    {
                      /* Nothing to do when the data source is null */
              Severity: Major
              Found in cabot/static/theme/js/jquery.dataTables.min.js - About 2 hrs to fix

                Function bind has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function bind(group, groupData) {
                      var i, n = group.length, m = groupData.length, n0 = Math.min(n, m), updateNodes = new Array(m), enterNodes = new Array(m), exitNodes = new Array(n), node, nodeData;
                      if (key) {
                        var nodeByKeyValue = new d3_Map(), dataByKeyValue = new d3_Map(), keyValues = [], keyValue;
                        for (i = -1; ++i < n; ) {
                Severity: Major
                Found in cabot/static/arachnys/js/d3.js - About 2 hrs to fix

                  Function drag has 51 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, "mousemove", "mouseup"), touchstart = dragstart(touchid, touchposition, "touchmove", "touchend");
                      function drag() {
                        this.on("mousedown.drag", mousedown).on("touchstart.drag", touchstart);
                      }
                  Severity: Major
                  Found in cabot/static/arachnys/js/d3.js - About 2 hrs to fix

                    Function interPathHelper has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        function interPathHelper(path1, path2, justCount) {
                            path1 = R._path2curve(path1);
                            path2 = R._path2curve(path2);
                            var x1, y1, x2, y2, x1m, y1m, x2m, y2m, bez1, bez2,
                                res = justCount ? 0 : [];
                    Severity: Major
                    Found in cabot/static/arachnys/js/raphael.js - About 2 hrs to fix

                      Function remove has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        remove: function( elem, types, handler, selector, mappedTypes ) {
                          var j, handleObj, tmp,
                            origCount, t, events,
                            special, handlers, type,
                            namespaces, origType,
                      Severity: Major
                      Found in cabot/static/bootstrap/js/jquery-1.10.2.js - About 2 hrs to fix

                        Function animateClass has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        $.effects.animateClass = function( value, duration, easing, callback ) {
                            var o = $.speed( duration, easing, callback );
                        
                            return this.queue( function() {
                                var animated = $( this ),
                        Severity: Minor
                        Found in cabot/static/theme/js/jquery-ui.js - About 2 hrs to fix

                          Function fnInnerSorting has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                  var fnInnerSorting = function () {
                                    var iColumn, iNextSort;
                          
                                    /* If the shift key is pressed then we are multiple column sorting */
                                    if ( e.shiftKey )
                          Severity: Minor
                          Found in cabot/static/theme/js/jquery.dataTables.min.js - About 2 hrs to fix

                            Consider simplifying this complex logical expression.
                            Open

                                        if (params[has](att)) {
                                            if (!R._availableAttrs[has](att)) {
                                                continue;
                                            }
                                            var value = params[att];
                            Severity: Critical
                            Found in cabot/static/arachnys/js/raphael.js - About 2 hrs to fix

                              Function CubicBezierAtTime has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  function CubicBezierAtTime(t, p1x, p1y, p2x, p2y, duration) {
                                      var cx = 3 * p1x,
                                          bx = 3 * (p2x - p1x) - cx,
                                          ax = 1 - cx - bx,
                                          cy = 3 * p1y,
                              Severity: Minor
                              Found in cabot/static/arachnys/js/raphael.js - About 2 hrs to fix

                                Function unbind has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    eve.off = eve.unbind = function (name, f) {
                                        var names = name.split(separator),
                                            e,
                                            key,
                                            splice,
                                Severity: Minor
                                Found in cabot/static/arachnys/js/raphael.js - About 2 hrs to fix

                                  Function d3_interpolateTransform has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    function d3_interpolateTransform(a, b) {
                                      var s = [], q = [], n, A = d3.transform(a), B = d3.transform(b), ta = A.translate, tb = B.translate, ra = A.rotate, rb = B.rotate, wa = A.skew, wb = B.skew, ka = A.scale, kb = B.scale;
                                      if (ta[0] != tb[0] || ta[1] != tb[1]) {
                                        s.push("translate(", null, ",", null, ")");
                                        q.push({
                                  Severity: Minor
                                  Found in cabot/static/arachnys/js/d3.js - About 2 hrs to fix

                                    Function Hover has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      Morris.Hover = (function() {
                                    
                                        Hover.defaults = {
                                          "class": 'morris-hover morris-default-style'
                                        };
                                    Severity: Minor
                                    Found in cabot/static/arachnys/js/morris.js - About 2 hrs to fix

                                      Function d3_transitionNode has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        function d3_transitionNode(node, i, id, inherit) {
                                          var lock = node.__transition__ || (node.__transition__ = {
                                            active: 0,
                                            count: 0
                                          }), transition = lock[id];
                                      Severity: Minor
                                      Found in cabot/static/arachnys/js/d3.js - About 2 hrs to fix

                                        Function d3_scale_linear has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          function d3_scale_linear(domain, range, interpolate, clamp) {
                                            var output, input;
                                            function rescale() {
                                              var linear = Math.min(domain.length, range.length) > 2 ? d3_scale_polylinear : d3_scale_bilinear, uninterpolate = clamp ? d3_uninterpolateClamp : d3_uninterpolateNumber;
                                              output = linear(domain, range, uninterpolate, interpolate);
                                        Severity: Minor
                                        Found in cabot/static/arachnys/js/d3.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language