opsforgeio/cabot

View on GitHub

Showing 840 of 1,637 total issues

Avoid deeply nested control flow statements.
Open

                for (var subkey in par) if (par[has](subkey)) {
                    params[subkey] = par[subkey];
                }
Severity: Major
Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

    Function matrix has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        R.matrix = function (a, b, c, d, e, f) {
    Severity: Minor
    Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                          for (key in e) if (e[has](key)) {
                              splice.push(e[key]);
                          }
      Severity: Major
      Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

        Function animateWith has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            elproto.animateWith = function (el, anim, params, ms, easing, callback) {
        Severity: Minor
        Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                      if (onlystart) {return sp;}
          Severity: Major
          Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                        if (o._.arrows) {
                                            "startString" in o._.arrows && addArrow(o, o._.arrows.startString);
                                            "endString" in o._.arrows && addArrow(o, o._.arrows.endString, 1);
                                        }
            Severity: Major
            Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

              Function q2c has 6 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                      q2c = function (x1, y1, ax, ay, x2, y2) {
              Severity: Minor
              Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                Function drag has 6 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    elproto.drag = function (onmove, onstart, onend, move_scope, start_scope, end_scope) {
                Severity: Minor
                Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                  Function runAnimation has 6 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      function runAnimation(anim, element, percent, status, totalOrigin, times) {
                  Severity: Minor
                  Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                            for (j = 0, jj = e.f.length; j < jj; j++) if (e.f[j] == f) {
                                                e.f.splice(j, 1);
                                                break;
                                            }
                    Severity: Major
                    Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                              if (pj[0] == "C") {
                                                  bez2 = [x2, y2].concat(pj.slice(1));
                                                  x2 = bez2[6];
                                                  y2 = bez2[7];
                                              } else {
                      Severity: Major
                      Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                if (justCount) {
                                                    res += intr;
                                                } else {
                                                    for (var k = 0, kk = intr.length; k < kk; k++) {
                                                        intr[k].segment1 = i;
                        Severity: Major
                        Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                  switch (availableAnimAttrs[attr]) {
                                                      case nu:
                                                          now = +from[attr] + pos * ms * diff[attr];
                                                          break;
                                                      case "colour":
                          Severity: Major
                          Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                            Function rect has 6 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                R._engine.rect = function (svg, x, y, w, h, r) {
                            Severity: Minor
                            Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                              Function CubicBezierAtTime has 6 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  function CubicBezierAtTime(t, p1x, p1y, p2x, p2y, duration) {
                              Severity: Minor
                              Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                Function image has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    R._engine.image = function (svg, src, x, y, w, h) {
                                Severity: Minor
                                Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                              if (stop) {
                                                                  break;
                                                              }
                                  Severity: Major
                                  Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                        } else if (command == "s") {
                                                            if (tlen == 2 || tlen == 3) {
                                                                bb = bb || el.getBBox(1);
                                                                m.scale(t[1], t[tlen - 1], bb.x + bb.width / 2, bb.y + bb.height / 2);
                                                                sx *= t[1];
                                    Severity: Major
                                    Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                                  if (path) {
                                                                      var clip = R._g.doc.getElementById(path.replace(/(^url\(#|\)$)/g, E));
                                                                      clip && clip.parentNode.removeChild(clip);
                                                                      $(node, {"clip-path": E});
                                                                      delete o.clip;
                                      Severity: Major
                                      Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                    if (gradient) {
                                                                        stops = gradient.getElementsByTagName("stop");
                                                                        $(stops[stops.length - 1], {"stop-opacity": value});
                                                                    }
                                        Severity: Major
                                        Found in cabot/static/arachnys/js/raphael.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language