eiriksm/msg2svg

View on GitHub

Showing 207 of 537 total issues

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

  function ordinal(range) {
    var index = map$1(),
        domain = [],
        unknown = implicit;

Severity: Minor
Found in out.js - About 1 hr to fix

    Function DragEvent has 10 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      function DragEvent(target, type, subject, id, active, x, y, dx, dy, dispatch) {
    Severity: Major
    Found in out.js - About 1 hr to fix

      Function add has 31 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function add(tree, x, y, d) {
          if (isNaN(x) || isNaN(y)) return tree; // ignore invalid points
      
          var parent,
              node = tree._root,
      Severity: Minor
      Found in out.js - About 1 hr to fix

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

          function circle$1() {
            var center = constant$12([0, 0]),
                radius = constant$12(90),
                precision = constant$12(6),
                ring,
        Severity: Minor
        Found in out.js - About 1 hr to fix

          Function selection_data has 31 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function selection_data(value, key) {
              if (!value) {
                data = new Array(this.size()), j = -1;
                this.each(function(d) { data[++j] = d; });
                return data;
          Severity: Minor
          Found in out.js - About 1 hr to fix

            Function arc has 31 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                arc: function(x, y, r, a0, a1, ccw) {
                  x = +x, y = +y, r = +r;
                  var dx = r * Math.cos(a0),
                      dy = r * Math.sin(a0),
                      x0 = x + dx,
            Severity: Minor
            Found in out.js - About 1 hr to fix

              Function pie has 31 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

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

                Function PathContext has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  function PathContext(context) {
                    var pointRadius = 4.5;
                
                    var stream = {
                      point: point,
                Severity: Minor
                Found in out.js - About 1 hr to fix

                  Function x$3 has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    function x$3(x) {
                      var strength = constant$6(0.1),
                          nodes,
                          strengths,
                          xz;
                  Severity: Minor
                  Found in out.js - About 1 hr to fix

                    Function linePoint has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                          function linePoint(x, y) {
                            var v = visible(x, y);
                            if (polygon) ring.push([x, y]);
                            if (first) {
                              x__ = x, y__ = y, v__ = v;
                    Severity: Minor
                    Found in out.js - About 1 hr to fix

                      Function token has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                            function token() {
                              if (I >= N) return EOF; // special case: end of file
                              if (eol) return eol = false, EOL; // special case: end of line
                      
                              // special case: quotes
                      Severity: Minor
                      Found in out.js - About 1 hr to fix

                        Function y$3 has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          function y$3(y) {
                            var strength = constant$6(0.1),
                                nodes,
                                strengths,
                                yz;
                        Severity: Minor
                        Found in out.js - About 1 hr to fix

                          Function histogram has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function histogram(data) {
                                var i,
                                    n = data.length,
                                    x,
                                    values = new Array(n);
                          Severity: Minor
                          Found in out.js - About 1 hr to fix

                            Function interpolate$2 has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              function interpolate$2(a, b) {
                                var x0 = a[0] * radians,
                                    y0 = a[1] * radians,
                                    x1 = b[0] * radians,
                                    y1 = b[1] * radians,
                            Severity: Minor
                            Found in out.js - About 1 hr to fix

                              Function exports has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              module.exports = function(svgContainer, getRandom) {
                                var width = svgContainer.attr('width');
                                var height = svgContainer.attr('height');
                                var lineFunction = d3.line()
                                  .x(function(d) { return d.x; })
                              Severity: Minor
                              Found in drawers/lines.js - About 1 hr to fix

                                Function 2 has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

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

                                  Function exports has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  module.exports = function(svgContainer, getRandom) {
                                    var width = svgContainer.attr('width');
                                    var height = svgContainer.attr('height');
                                    var lineFunction = d3.line()
                                      .x(function(d) { return d.x; })
                                  Severity: Minor
                                  Found in out.js - About 1 hr to fix

                                    Function exports has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    module.exports = function(seed, options) {
                                      if (options && options.global === true) {
                                        options.global = false;
                                        Math.random = module.exports(seed, options);
                                        options.global = true;
                                    Severity: Minor
                                    Found in out.js - About 1 hr to fix

                                      Function calendar has 9 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                        function calendar(year, month, week, day, hour, minute, second, millisecond, format) {
                                      Severity: Major
                                      Found in out.js - About 1 hr to fix

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

                                          function encloseN(L, B) {
                                            var circle,
                                                l0 = null,
                                                l1 = L.head,
                                                l2,
                                        Severity: Minor
                                        Found in out.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language