levent/agileista

View on GitHub

Showing 149 of 317 total issues

Function d3_time_interval has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function d3_time_interval(local, step, number) {
    function round(date) {
      var d0 = local(date), d1 = offset(d0, 1);
      return date - d0 < d1 - date ? d0 : d1;
    }
Severity: Minor
Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

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

      d3.layout.pie = function() {
        var value = Number, sort = d3_layout_pieSortByValue, startAngle = 0, endAngle = τ;
        function pie(data) {
          var values = data.map(function(d, i) {
            return +value.call(pie, d, i);
    Severity: Minor
    Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

      Function path has 45 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        d3.geo.path = function() {
          var pointRadius = 4.5, projection, context, projectStream, contextStream, cacheStream;
          function path(object) {
            if (object) {
              if (typeof pointRadius === "function") contextStream.pointRadius(+pointRadius.apply(this, arguments));
      Severity: Minor
      Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

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

          d3.layout.histogram = function() {
            var frequency = true, valuer = Number, ranger = d3_layout_histogramRange, binner = d3_layout_histogramBinSturges;
            function histogram(data, i) {
              var bins = [], values = data.map(valuer, this), range = ranger.call(this, values, i), thresholds = binner.call(this, range, values, i), bin, i = -1, n = values.length, m = thresholds.length - 1, k = frequency ? 1 : 1 / n, x;
              while (++i < m) {
        Severity: Minor
        Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

          Function resampleLineTo has 14 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              function resampleLineTo(x0, y0, λ0, a0, b0, c0, x1, y1, λ1, a1, b1, c1, depth, stream) {
          Severity: Major
          Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

            Function parseRows has 43 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                dsv.parseRows = function(text, f) {
                  var EOL = {}, EOF = {}, rows = [], N = text.length, I = 0, n = 0, t, eol;
                  function token() {
                    if (I >= N) return EOF;
                    if (eol) return eol = false, EOL;
            Severity: Minor
            Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

              Function d3_svg_line has 43 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                function d3_svg_line(projection) {
                  var x = d3_geom_pointX, y = d3_geom_pointY, defined = d3_true, interpolate = d3_svg_lineLinear, interpolateKey = interpolate.key, tension = .7;
                  function line(data) {
                    var segments = [], points = [], i = -1, n = data.length, d, fx = d3_functor(x), fy = d3_functor(y);
                    function segment() {
              Severity: Minor
              Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                Function d3_geo_pathBuffer has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  function d3_geo_pathBuffer() {
                    var pointCircle = d3_geo_pathBufferCircle(4.5), buffer = [];
                    var stream = {
                      point: point,
                      lineStart: function() {
                Severity: Minor
                Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                  Function point has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          point: function(λ, φ) {
                            var point1 = [ λ, φ ], point2, v = visible(λ, φ), c = smallRadius ? v ? 0 : code(λ, φ) : v ? code(λ + (λ < 0 ? π : -π), φ) : 0;
                            if (!point0 && (v00 = v0 = v)) listener.lineStart();
                            if (v !== v0) {
                              point2 = intersect(point0, point1);
                  Severity: Minor
                  Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

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

                        force.start = function() {
                          var i, n = nodes.length, m = links.length, w = size[0], h = size[1], neighbors, o;
                          for (i = 0; i < n; ++i) {
                            (o = nodes[i]).index = i;
                            o.weight = 0;
                    Severity: Minor
                    Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                      Function cluster has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        d3.layout.cluster = function() {
                          var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = false;
                          function cluster(d, i) {
                            var nodes = hierarchy.call(this, d, i), root = nodes[0], previousNode, x = 0;
                            d3_layout_treeVisitAfter(root, function(node) {
                      Severity: Minor
                      Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                        Function d3_time_format has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function d3_time_format(template) {
                              var n = template.length;
                              function format(date) {
                                var string = [], i = -1, j = 0, c, p, f;
                                while (++i < n) {
                        Severity: Minor
                        Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                          Function inWords has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              inWords: function(distanceMillis) {
                                if(!this.settings.allowPast && ! this.settings.allowFuture) {
                                    throw 'timeago allowPast and allowFuture settings can not both be set to false.';
                                }
                          
                          
                          Severity: Minor
                          Found in app/assets/javascripts/jquery.timeago.js - About 1 hr to fix

                            Function extent has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                brush.extent = function(z) {
                                  var x0, x1, y0, y1, t;
                                  if (!arguments.length) {
                                    if (x) {
                                      if (xExtentDomain) {
                            Severity: Minor
                            Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

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

                                    function linePoint(x, y) {
                                      x = Math.max(-d3_geo_clipExtentMAX, Math.min(d3_geo_clipExtentMAX, x));
                                      y = Math.max(-d3_geo_clipExtentMAX, Math.min(d3_geo_clipExtentMAX, y));
                                      var v = pointVisible(x, y);
                                      if (polygon) ring.push([ x, y ]);
                              Severity: Minor
                              Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                Function pack has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                  d3.layout.pack = function() {
                                    var hierarchy = d3.layout.hierarchy().sort(d3_layout_packSort), padding = 0, size = [ 1, 1 ], radius;
                                    function pack(d, i) {
                                      var nodes = hierarchy.call(this, d, i), root = nodes[0], w = size[0], h = size[1], r = radius == null ? Math.sqrt : typeof radius === "function" ? radius : function() {
                                        return radius;
                                Severity: Minor
                                Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

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

                                      function linePoint(λ, φ) {
                                        var p = d3_geo_cartesian([ λ * d3_radians, φ * d3_radians ]);
                                        if (p0) {
                                          var normal = d3_geo_cartesianCross(p0, p), equatorial = [ normal[1], -normal[0], 0 ], inflection = d3_geo_cartesianCross(equatorial, normal);
                                          d3_geo_cartesianNormalize(inflection);
                                  Severity: Minor
                                  Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

                                    Function d3_geo_pathContext has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                      function d3_geo_pathContext(context) {
                                        var pointRadius = 4.5;
                                        var stream = {
                                          point: point,
                                          lineStart: function() {
                                    Severity: Minor
                                    Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

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

                                        function d3_geo_clipAntimeridianLine(listener) {
                                          var λ0 = NaN, φ0 = NaN, sλ0 = NaN, clean;
                                          return {
                                            lineStart: function() {
                                              listener.lineStart();
                                      Severity: Minor
                                      Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix

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

                                          d3.layout.partition = function() {
                                            var hierarchy = d3.layout.hierarchy(), size = [ 1, 1 ];
                                            function position(node, x, dx, dy) {
                                              var children = node.children;
                                              node.x = x;
                                        Severity: Minor
                                        Found in app/assets/javascripts/d3.v3/d3.v3.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language