eiriksm/msg2svg

View on GitHub

Showing 207 of 537 total issues

Function dsv has 87 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function dsv(delimiter) {
    var reFormat = new RegExp("[\"" + delimiter + "\n]"),
        delimiterCode = delimiter.charCodeAt(0);

    function parse(text, f) {
Severity: Major
Found in out.js - About 3 hrs to fix

    Function formatLocale has 86 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function formatLocale(locale) {
        var group = locale.grouping && locale.thousands ? formatGroup(locale.grouping, locale.thousands) : identity$3,
            currency = locale.currency,
            decimal = locale.decimal;
    
    
    Severity: Major
    Found in out.js - About 3 hrs to fix

      Function chord has 85 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function chord() {
          var padAngle = 0,
              sortGroups = null,
              sortSubgroups = null,
              sortChords = null;
      Severity: Major
      Found in out.js - About 3 hrs to fix

        Function manyBody has 83 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          function manyBody() {
            var nodes,
                node,
                alpha,
                strength = constant$6(-30),
        Severity: Major
        Found in out.js - About 3 hrs to fix

          Function link has 83 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function link(links) {
              var id = index$2,
                  strength = defaultStrength,
                  strengths,
                  distance = constant$6(30),
          Severity: Major
          Found in out.js - About 3 hrs to fix

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

              function area$1() {
                var x0 = x,
                    x1 = null,
                    y0 = constant$1(0),
                    y1 = y,
            Severity: Major
            Found in out.js - About 3 hrs to fix

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

                function index$1() {
                  var tile = squarify,
                      round = false,
                      dx = 1,
                      dy = 1,
              Severity: Major
              Found in out.js - About 2 hrs to fix

                Function graticule has 74 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  function graticule() {
                    var x1, x0, X1, X0,
                        y1, y0, Y1, Y0,
                        dx = 10, dy = dx, DX = 90, DY = 360,
                        x, y, X, Y,
                Severity: Major
                Found in out.js - About 2 hrs to fix

                  Function log has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                    function log() {
                      var scale = continuous(deinterpolate$1, reinterpolate).domain([1, 10]),
                          domain = scale.domain,
                          base = 10,
                          logs = logp(10),
                  Severity: Major
                  Found in out.js - About 2 hrs to fix

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

                      function resample$1(project, delta2) {
                    
                        function resampleLineTo(x0, y0, lambda0, a0, b0, c0, x1, y1, lambda1, a1, b1, c1, depth, stream) {
                          var dx = x1 - x0,
                              dy = y1 - y0,
                    Severity: Major
                    Found in out.js - About 2 hrs to fix

                      Function clipCells has 69 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        function clipCells(x0, y0, x1, y1) {
                          var nCells = cells.length,
                              iCell,
                              cell,
                              site,
                      Severity: Major
                      Found in out.js - About 2 hrs to fix

                        Function newFormat has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function newFormat(specifier) {
                              specifier = formatSpecifier(specifier);
                        
                              var fill = specifier.fill,
                                  align = specifier.align,
                        Severity: Major
                        Found in out.js - About 2 hrs to fix

                          Function clipLine has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function clipLine(stream) {
                                var point0, // previous point
                                    c0, // code for previous point
                                    v0, // visibility of previous point
                                    v00, // visibility of first point
                          Severity: Major
                          Found in out.js - About 2 hrs to fix

                            Function insert has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                insert: function(after, node) {
                                  var parent, grandpa, uncle;
                            
                                  if (after) {
                                    node.P = after;
                            Severity: Major
                            Found in out.js - About 2 hrs to fix

                              Function addBeach has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                function addBeach(site) {
                                  var x = site[0],
                                      directrix = site[1],
                                      lArc,
                                      rArc,
                              Severity: Major
                              Found in out.js - About 2 hrs to fix

                                Function collide has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  function collide(radius) {
                                    var nodes,
                                        radii,
                                        strength = 1,
                                        iterations = 1;
                                Severity: Major
                                Found in out.js - About 2 hrs to fix

                                  Function chord has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      function chord(matrix) {
                                        var n = matrix.length,
                                            groupSums = [],
                                            groupIndex = range(n),
                                            subgroupIndex = [],
                                  Severity: Major
                                  Found in out.js - About 2 hrs to fix

                                    Function band has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      function band() {
                                        var scale = ordinal().unknown(undefined),
                                            domain = scale.domain,
                                            ordinalRange = scale.range,
                                            range$$ = [0, 1],
                                    Severity: Major
                                    Found in out.js - About 2 hrs to fix

                                      Function axis has 63 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function axis(context) {
                                            var values = tickValues == null ? (scale.ticks ? scale.ticks.apply(scale, tickArguments) : scale.domain()) : tickValues,
                                                format = tickFormat == null ? (scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments) : identity$5) : tickFormat,
                                                spacing = Math.max(tickSizeInner, 0) + tickPadding,
                                                transform = orient === top || orient === bottom ? translateX : translateY,
                                      Severity: Major
                                      Found in out.js - About 2 hrs to fix

                                        Function projectionMutator has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                          function projectionMutator(projectAt) {
                                            var project,
                                                k = 150, // scale
                                                x = 480, y = 250, // translate
                                                dx, dy, lambda = 0, phi = 0, // center
                                        Severity: Major
                                        Found in out.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language