eiriksm/msg2svg

View on GitHub

Showing 207 of 537 total issues

Function stack has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function stack() {
    var keys = constant$1([]),
        order = none$1,
        offset = none,
        value = stackValue;
Severity: Minor
Found in out.js - About 1 hr to fix

    Function interpolateZoom has 37 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function interpolateZoom(p0, p1) {
        var ux0 = p0[0], uy0 = p0[1], w0 = p0[2],
            ux1 = p1[0], uy1 = p1[1], w1 = p1[2],
            dx = ux1 - ux0,
            dy = uy1 - uy0,
    Severity: Minor
    Found in out.js - About 1 hr to fix

      Function stratify has 37 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function stratify(data) {
            var d,
                i,
                n = data.length,
                root,
      Severity: Minor
      Found in out.js - About 1 hr to fix

        Function Diagram has 37 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          function Diagram(sites, extent) {
            var site = sites.sort(lexicographic).pop(),
                x,
                y,
                circle;
        Severity: Minor
        Found in out.js - About 1 hr to fix

          Function keyupped has 36 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                function keyupped() {
                  switch (exports.event.keyCode) {
                    case 16: { // SHIFT
                      if (shifting) {
                        lockX = lockY = shifting = false;
          Severity: Minor
          Found in out.js - About 1 hr to fix

            Function interpolateString has 36 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              function interpolateString(a, b) {
                var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b
                    am, // current match in a
                    bm, // current match in b
                    bs, // string preceding current number in b, if any
            Severity: Minor
            Found in out.js - About 1 hr to fix

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

                  function apportion(v, w, ancestor) {
                    if (w) {
                      var vip = v,
                          vop = v,
                          vim = w,
              Severity: Minor
              Found in out.js - About 1 hr to fix

                Function binary has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  function binary(parent, x0, y0, x1, y1) {
                    var nodes = parent.children,
                        i, n = nodes.length,
                        sum, sums = new Array(n + 1);
                
                
                Severity: Minor
                Found in out.js - About 1 hr to fix

                  Function cornerTangents has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {
                      var x01 = x0 - x1,
                          y01 = y0 - y1,
                          lo = (cw ? rc : -rc) / Math.sqrt(x01 * x01 + y01 * y01),
                          ox = lo * y01,
                  Severity: Minor
                  Found in out.js - About 1 hr to fix

                    Function continuous has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      function continuous(deinterpolate$$, reinterpolate) {
                        var domain = unit,
                            range = unit,
                            interpolate$$ = interpolate,
                            clamp = false,
                    Severity: Minor
                    Found in out.js - About 1 hr to fix

                      Consider simplifying this complex logical expression.
                      Open

                                    if (c = value.charCodeAt(i), (48 < c && c < 58)
                                        || (type === "x" && 96 < c && c < 103)
                                        || (type === "X" && 64 < c && c < 71)) {
                                      valueNegative = true;
                                      break;
                      Severity: Critical
                      Found in out.js - About 1 hr to fix

                        Consider simplifying this complex logical expression.
                        Open

                            else if (x0 > x || x > x1 || y0 > y || y > y1) {
                              var z = x1 - x0,
                                  node = this._root,
                                  parent,
                                  i;
                        Severity: Critical
                        Found in out.js - About 1 hr to fix

                          Function 3 has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          },{"../helpers/colors":4}],3:[function(require,module,exports){
                          'use strict';
                          var getColor = require('../helpers/colors');
                          var d3 = require('d3');
                          
                          
                          Severity: Minor
                          Found in out.js - About 1 hr to fix

                            Function voronoi has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              function voronoi() {
                                var x = x$4,
                                    y = y$4,
                                    extent = null;
                            
                            
                            Severity: Minor
                            Found in out.js - About 1 hr to fix

                              Function ticks has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  scale.ticks = function(count) {
                                    var d = domain(),
                                        u = d[0],
                                        v = d[d.length - 1],
                                        r;
                              Severity: Minor
                              Found in out.js - About 1 hr to fix

                                Function quantize$1 has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  function quantize$1() {
                                    var x0 = 0,
                                        x1 = 1,
                                        n = 1,
                                        domain = [0.5],
                                Severity: Minor
                                Found in out.js - About 1 hr to fix

                                  Function start has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function start(elapsed) {
                                        var i, j, n, o;
                                  
                                        for (i in schedules) {
                                          o = schedules[i];
                                  Severity: Minor
                                  Found in out.js - About 1 hr to fix

                                    Function area has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function area(data) {
                                          var i,
                                              j,
                                              k,
                                              n = data.length,
                                    Severity: Minor
                                    Found in out.js - About 1 hr to fix

                                      Function move has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          brush.move = function(group, selection) {
                                            if (group.selection) {
                                              group
                                                  .on("start.brush", function() { emitter(this, arguments).beforestart().start(); })
                                                  .on("interrupt.brush end.brush", function() { emitter(this, arguments).end(); })
                                      Severity: Minor
                                      Found in out.js - About 1 hr to fix

                                        Function bindKey has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          function bindKey(parent, group, enter, update, exit, data, key) {
                                            var i,
                                                node,
                                                nodeByKeyValue = {},
                                                groupLength = group.length,
                                        Severity: Minor
                                        Found in out.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language