dhgwilliam/google-voice-stats

View on GitHub

Showing 231 of 371 total issues

File d3.v2.js has 7033 lines of code (exceeds 250 allowed). Consider refactoring.
Open

(function() {
  function d3_class(ctor, properties) {
    try {
      for (var key in properties) {
        Object.defineProperty(ctor.prototype, key, {
Severity: Major
Found in public/js/d3.v2.js - About 2 wks to fix

    File jquery.js has 6373 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*! jQuery v1.7.1 jquery.com | jquery.org/license */
    (function( window, undefined ) {
    
    // Use the correct document accordingly with window argument (sandbox)
    var document = window.document,
    Severity: Major
    Found in public/js/jquery.js - About 2 wks to fix

      File bootstrap.js has 1281 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /* ===================================================
       * bootstrap-transition.js v2.0.4
       * http://twitter.github.com/bootstrap/javascript.html#transitions
       * ===================================================
       * Copyright 2012 Twitter, Inc.
      Severity: Major
      Found in public/js/bootstrap.js - About 3 days to fix

        Function jQuery has 592 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        var jQuery = (function() {
        
        // Define a local copy of jQuery
        var jQuery = function( selector, context ) {
                // The jQuery object is actually just the init constructor 'enhanced'
        Severity: Major
        Found in public/js/jquery.js - About 2 days to fix

          Function d3_voronoi_tessellate has 268 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function d3_voronoi_tessellate(vertices, callback) {
              var Sites = {
                list: vertices.map(function(v, i) {
                  return {
                    index: i,
          Severity: Major
          Found in public/js/d3.v2.js - About 1 day to fix

            Function ajax has 242 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                ajax: function( url, options ) {
            
                    // If url is an object, simulate pre-1.5 signature
                    if ( typeof url === "object" ) {
                        options = url;
            Severity: Major
            Found in public/js/jquery.js - About 1 day to fix

              Function brush has 213 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                d3.svg.brush = function() {
                  function brush(g) {
                    g.each(function() {
                      var g = d3.select(this), bg = g.selectAll(".background").data([ 0 ]), fg = g.selectAll(".extent").data([ 0 ]), tz = g.selectAll(".resize").data(resizes, String), e;
                      g.style("pointer-events", "all").on("mousedown.brush", brushstart).on("touchstart.brush", brushstart);
              Severity: Major
              Found in public/js/d3.v2.js - About 1 day to fix

                Function force has 210 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                  d3.layout.force = function() {
                    function repulse(node) {
                      return function(quad, x1, y1, x2, y2) {
                        if (quad.point !== node) {
                          var dx = quad.cx - node.x, dy = quad.cy - node.y, dn = 1 / Math.sqrt(dx * dx + dy * dy);
                Severity: Major
                Found in public/js/d3.v2.js - About 1 day to fix

                  Function support has 159 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  jQuery.support = (function() {
                  
                      var support,
                          all,
                          a,
                  Severity: Major
                  Found in public/js/jquery.js - About 6 hrs to fix

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

                      d3.geo.path = function() {
                        function path(d, i) {
                          if (typeof pointRadius === "function") pointCircle = d3_path_circle(pointRadius.apply(this, arguments));
                          pathType(d);
                          var result = buffer.length ? buffer.join("") : null;
                    Severity: Major
                    Found in public/js/d3.v2.js - About 6 hrs to fix

                      Function Callbacks has 148 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      jQuery.Callbacks = function( flags ) {
                      
                          // Convert flags from String-formatted to Object-formatted
                          // (we check in cache first)
                          flags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {};
                      Severity: Major
                      Found in public/js/jquery.js - About 5 hrs to fix

                        Function treemap has 140 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                          d3.layout.treemap = function() {
                            function scale(children, k) {
                              var i = -1, n = children.length, child, area;
                              while (++i < n) {
                                area = (child = children[i]).value * (k < 0 ? 0 : k);
                        Severity: Major
                        Found in public/js/d3.v2.js - About 5 hrs to fix

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

                            d3.svg.axis = function() {
                              function axis(g) {
                                g.each(function() {
                                  var g = d3.select(this);
                                  var ticks = tickValues == null ? scale.ticks ? scale.ticks.apply(scale, tickArguments_) : scale.domain() : tickValues, tickFormat = tickFormat_ == null ? scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments_) : String : tickFormat_;
                          Severity: Major
                          Found in public/js/d3.v2.js - About 5 hrs to fix

                            Consider simplifying this complex logical expression.
                            Open

                                        if ( event.pageX == null && original.clientX != null ) {
                                            eventDoc = event.target.ownerDocument || document;
                                            doc = eventDoc.documentElement;
                                            body = eventDoc.body;
                            
                            
                            Severity: Critical
                            Found in public/js/jquery.js - About 5 hrs to fix

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

                                d3.behavior.zoom = function() {
                                  function zoom() {
                                    this.on("mousedown.zoom", mousedown).on("mousewheel.zoom", mousewheel).on("mousemove.zoom", mousemove).on("DOMMouseScroll.zoom", mousewheel).on("dblclick.zoom", dblclick).on("touchstart.zoom", touchstart).on("touchmove.zoom", touchmove).on("touchend.zoom", touchstart);
                                  }
                                  function location(p) {
                              Severity: Major
                              Found in public/js/d3.v2.js - About 4 hrs to fix

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

                                  d3.layout.chord = function() {
                                    function relayout() {
                                      var subgroups = {}, groupSums = [], groupIndex = d3.range(n), subgroupIndex = [], k, x, x0, i, j;
                                      chords = [];
                                      groups = [];
                                Severity: Major
                                Found in public/js/d3.v2.js - About 4 hrs to fix

                                  Function Sizzle has 108 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  var Sizzle = function( selector, context, results, seed ) {
                                      results = results || [];
                                      context = context || document;
                                  
                                      var origContext = context;
                                  Severity: Major
                                  Found in public/js/jquery.js - About 4 hrs to fix

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

                                        function brushstart() {
                                          function mouse() {
                                            var touches = d3.event.changedTouches;
                                            return touches ? d3.touches(target, touches)[0] : d3.mouse(target);
                                          }
                                    Severity: Major
                                    Found in public/js/d3.v2.js - About 4 hrs to fix

                                      Function circle has 100 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                        d3.geo.circle = function() {
                                          function circle() {}
                                          function visible(point) {
                                            return arc.distance(point) < radians;
                                          }
                                      Severity: Major
                                      Found in public/js/d3.v2.js - About 4 hrs to fix

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

                                          d3.layout.tree = function() {
                                            function tree(d, i) {
                                              function firstWalk(node, previousSibling) {
                                                var children = node.children, layout = node._tree;
                                                if (children && (n = children.length)) {
                                        Severity: Major
                                        Found in public/js/d3.v2.js - About 3 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language