eiriksm/msg2svg

View on GitHub

Showing 207 of 537 total issues

Function 6 has 13465 lines of code (exceeds 25 allowed). Consider refactoring.
Open

},{"./drawers/circles":2,"./drawers/lines":3,"d3":6,"seed-random":7}],6:[function(require,module,exports){
// https://d3js.org Version 4.1.1. Copyright 2016 Mike Bostock.
(function (global, factory) {
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
Severity: Major
Found in out.js - About 2 mos to fix

    File out.js has 13699 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
    /*global document */
    'use strict';
    var d3 = require('d3');
    var msg2svg = require('./index.js').bind(null, document);
    Severity: Major
    Found in out.js - About 1 mo to fix

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

        function brush$1(dim) {
          var extent = defaultExtent$1,
              filter = defaultFilter$2,
              listeners = dispatch(brush, "start", "brush", "end"),
              handleSize = 6,
      Severity: Major
      Found in out.js - About 1 day to fix

        Function zoom has 286 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          function zoom() {
            var filter = defaultFilter$1,
                extent = defaultExtent,
                k0 = 0,
                k1 = Infinity,
        Severity: Major
        Found in out.js - About 1 day to fix

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

            function formatLocale$1(locale) {
              var locale_dateTime = locale.dateTime,
                  locale_date = locale.date,
                  locale_time = locale.time,
                  locale_periods = locale.periods,
          Severity: Major
          Found in out.js - About 1 day to fix

            Function 7 has a Cognitive Complexity of 59 (exceeds 5 allowed). Consider refactoring.
            Open

            },{}],7:[function(require,module,exports){
            (function (global){
            'use strict';
            
            var width = 256;// each RC4 output is 0 <= x < 256
            Severity: Minor
            Found in out.js - About 1 day to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Function started has 201 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                function started() {
                  if (exports.event.touches) { if (exports.event.changedTouches.length < exports.event.touches.length) return noevent$2(); }
                  else if (touchending) return;
                  if (!filter.apply(this, arguments)) return;
            
            
            Severity: Major
            Found in out.js - About 1 day to fix

              Function clipExtent has 134 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                function clipExtent(x0, y0, x1, y1) {
              
                  function visible(x, y) {
                    return x0 <= x && x <= x1 && y0 <= y && y <= y1;
                  }
              Severity: Major
              Found in out.js - About 5 hrs to fix

                Function clipCircle has 134 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  function clipCircle(radius, delta) {
                    var cr = cos$1(radius),
                        smallRadius = cr > 0,
                        notHemisphere = abs(cr) > epsilon$4; // TODO optimise for this common case
                
                
                Severity: Major
                Found in out.js - About 5 hrs to fix

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

                    function arc() {
                      var innerRadius = arcInnerRadius,
                          outerRadius = arcOuterRadius,
                          cornerRadius = constant$1(0),
                          padRadius = null,
                  Severity: Major
                  Found in out.js - About 5 hrs to fix

                    Function request has 105 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                      function request(url, callback) {
                        var request,
                            event = dispatch("beforesend", "progress", "load", "error"),
                            mimeType,
                            headers = map$1(),
                    Severity: Major
                    Found in out.js - About 4 hrs to fix

                      Function drag has 104 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        function drag() {
                          var filter = defaultFilter,
                              container = defaultContainer,
                              subject = defaultSubject,
                              gestures = {},
                      Severity: Major
                      Found in out.js - About 4 hrs to fix

                        Function tree has 103 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          function tree() {
                            var separation = defaultSeparation$1,
                                dx = 1,
                                dy = 1,
                                nodeSize = null;
                        Severity: Major
                        Found in out.js - About 4 hrs to fix

                          Function simulation has 102 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            function simulation(nodes) {
                              var simulation,
                                  alpha = 1,
                                  alphaMin = 0.001,
                                  alphaDecay = 1 - Math.pow(alphaMin, 1 / 300),
                          Severity: Major
                          Found in out.js - About 4 hrs to fix

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

                              function axis(orient, scale) {
                                var tickArguments = [],
                                    tickValues = null,
                                    tickFormat = null,
                                    tickSizeInner = 6,
                            Severity: Major
                            Found in out.js - About 3 hrs to fix

                              Function 7 has 99 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              },{}],7:[function(require,module,exports){
                              (function (global){
                              'use strict';
                              
                              var width = 256;// each RC4 output is 0 <= x < 256
                              Severity: Major
                              Found in out.js - About 3 hrs to fix

                                Function clip has 98 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  function clip(pointVisible, clipLine, interpolate, start) {
                                    return function(rotate, sink) {
                                      var line = clipLine(sink),
                                          rotatedStart = rotate.invert(start[0], start[1]),
                                          ringBuffer = clipBuffer(),
                                Severity: Major
                                Found in out.js - About 3 hrs to fix

                                  Function remove has 94 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      remove: function(node) {
                                        if (node.N) node.N.P = node.P;
                                        if (node.P) node.P.N = node.N;
                                        node.N = node.P = null;
                                  
                                  
                                  Severity: Major
                                  Found in out.js - About 3 hrs to fix

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

                                        function arc() {
                                          var buffer,
                                              r,
                                              r0 = +innerRadius.apply(this, arguments),
                                              r1 = +outerRadius.apply(this, arguments),
                                    Severity: Major
                                    Found in out.js - About 3 hrs to fix

                                      Function calendar has 89 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        function calendar(year, month, week, day, hour, minute, second, millisecond, format) {
                                          var scale = continuous(deinterpolate, interpolateNumber),
                                              invert = scale.invert,
                                              domain = scale.domain;
                                      
                                      
                                      Severity: Major
                                      Found in out.js - About 3 hrs to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language