eiriksm/msg2svg

View on GitHub

Showing 207 of 537 total issues

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

  function index() {
    var radius = null,
        dx = 1,
        dy = 1,
        padding = constantZero;
Severity: Minor
Found in out.js - About 1 hr to fix

    Function keydowned has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          function keydowned() {
            switch (exports.event.keyCode) {
              case 16: { // SHIFT
                shifting = signX && signY;
                break;
    Severity: Minor
    Found in out.js - About 1 hr to fix

      Function rotationPhiGamma has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        function rotationPhiGamma(deltaPhi, deltaGamma) {
          var cosDeltaPhi = cos$1(deltaPhi),
              sinDeltaPhi = sin$1(deltaPhi),
              cosDeltaGamma = cos$1(deltaGamma),
              sinDeltaGamma = sin$1(deltaGamma);
      Severity: Minor
      Found in out.js - About 1 hr to fix

        Function apply has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function apply(quad, x1, _, x2) {
              if (!quad.value) return true;
        
              var x = quad.x - node.x,
                  y = quad.y - node.y,
        Severity: Minor
        Found in out.js - About 1 hr to fix

          Function bounds has 26 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function bounds(feature) {
              var i, n, a, b, merged, deltaMax, delta;
          
              if (deltaSum) deltaSum.reset();
              else deltaSum = adder();
          Severity: Minor
          Found in out.js - About 1 hr to fix

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

            module.exports = function(svg, getRandom) {
              var width = svg.attr('width');
              var height = svg.attr('height');
              // Find out how many circles.
              var numCirlces = getRandom(Math.floor(width / 48)) + 1;
            Severity: Minor
            Found in out.js - About 1 hr to fix

              Function variance has 26 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                function variance(array, f) {
                  var n = array.length,
                      m = 0,
                      a,
                      d,
              Severity: Minor
              Found in out.js - About 1 hr to fix

                Function 5 has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                },{}],5:[function(require,module,exports){
                'use strict';
                var d3 = require('d3');
                var seed = require('seed-random');
                
                
                Severity: Minor
                Found in out.js - About 1 hr to fix

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

                  module.exports = function(svg, getRandom) {
                    var width = svg.attr('width');
                    var height = svg.attr('height');
                    // Find out how many circles.
                    var numCirlces = getRandom(Math.floor(width / 48)) + 1;
                  Severity: Minor
                  Found in drawers/circles.js - About 1 hr to fix

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

                      function center$1(x, y) {
                        var nodes;
                    
                        if (x == null) x = 0;
                        if (y == null) y = 0;
                    Severity: Minor
                    Found in out.js - About 1 hr to fix

                      Function tickFormat has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        function tickFormat(domain, count, specifier) {
                          var start = domain[0],
                              stop = domain[domain.length - 1],
                              step = tickStep(start, stop, count == null ? 10 : count),
                              precision;
                      Severity: Minor
                      Found in out.js - About 1 hr to fix

                        Function custom has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          var resquarify = (function custom(ratio) {
                        
                            function resquarify(parent, x0, y0, x1, y1) {
                              if ((rows = parent._squarify) && (rows.ratio === ratio)) {
                                var rows,
                        Severity: Minor
                        Found in out.js - About 1 hr to fix

                          Function partition has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              function partition(i, j, value, x0, y0, x1, y1) {
                                if (i >= j - 1) {
                                  var node = nodes[i];
                                  node.x0 = x0, node.y0 = y0;
                                  node.x1 = x1, node.y1 = y1;
                          Severity: Minor
                          Found in out.js - About 1 hr to fix

                            Function intersect has 8 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                              function intersect(x0, y0, x1, y1, x2, y2, x3, y3) {
                            Severity: Major
                            Found in out.js - About 1 hr to fix

                              Function cornerTangents has 7 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {
                              Severity: Major
                              Found in out.js - About 50 mins to fix

                                Function partition has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    function partition(i, j, value, x0, y0, x1, y1) {
                                Severity: Major
                                Found in out.js - About 50 mins to fix

                                  Function bindKey has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                    function bindKey(parent, group, enter, update, exit, data, key) {
                                  Severity: Major
                                  Found in out.js - About 50 mins to fix

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

                                        bezierCurveTo: function(x1, y1, x2, y2, x, y) {
                                    Severity: Minor
                                    Found in out.js - About 45 mins to fix

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

                                        function decompose(a, b, c, d, e, f) {
                                      Severity: Minor
                                      Found in out.js - About 45 mins to fix

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

                                          function squarifyRatio(ratio, parent, x0, y0, x1, y1) {
                                        Severity: Minor
                                        Found in out.js - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language