dhgwilliam/google-voice-stats

View on GitHub

Showing 231 of 371 total issues

Consider simplifying this complex logical expression.
Open

            if ( match[1] === "nth" ) {
                if ( !match[2] ) {
                    Sizzle.error( match[0] );
                }

Severity: Critical
Found in public/js/jquery.js - About 1 hr to fix

    Function each has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        each: function( object, callback, args ) {
            var name, i = 0,
                length = object.length,
                isObj = length === undefined || jQuery.isFunction( object );
    
    
    Severity: Minor
    Found in public/js/jquery.js - About 1 hr to fix

      Function closest has 33 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          closest: function( selectors, context ) {
              var ret = [], i, l, cur = this[0];
      
              // Array (deprecated as of jQuery 1.7)
              if ( jQuery.isArray( selectors ) ) {
      Severity: Minor
      Found in public/js/jquery.js - About 1 hr to fix

        Function greatArc has 33 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          d3.geo.greatArc = function() {
            function greatArc() {
              var d = greatArc.distance.apply(this, arguments), t = 0, dt = precision / d, coordinates = [ p0 ];
              while ((t += dt) < 1) coordinates.push(interpolate(t));
              coordinates.push(p1);
        Severity: Minor
        Found in public/js/d3.v2.js - About 1 hr to fix

          Function format has 33 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            d3.time.format = function(template) {
              function format(date) {
                var string = [], i = -1, j = 0, c, f;
                while (++i < n) {
                  if (template.charCodeAt(i) == 37) {
          Severity: Minor
          Found in public/js/d3.v2.js - About 1 hr to fix

            Function ATTR has 32 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    ATTR: function( elem, match ) {
                        var name = match[1],
                            result = Sizzle.attr ?
                                Sizzle.attr( elem, name ) :
                                Expr.attrHandle[ name ] ?
            Severity: Minor
            Found in public/js/jquery.js - About 1 hr to fix

              Function d3_scale_pow has 32 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                function d3_scale_pow(linear, exponent) {
                  function scale(x) {
                    return linear(powp(x));
                  }
                  var powp = d3_scale_powPow(exponent), powb = d3_scale_powPow(1 / exponent);
              Severity: Minor
              Found in public/js/d3.v2.js - About 1 hr to fix

                Function setOffset has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    setOffset: function( elem, options, i ) {
                        var position = jQuery.css( elem, "position" );
                
                        // set position first, in-case top/left are set even on static elem
                        if ( position === "static" ) {
                Severity: Minor
                Found in public/js/jquery.js - About 1 hr to fix

                  Function rightOf has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                        rightOf: function(he, p) {
                          var e = he.edge, topsite = e.region.r, rightOfSite = p.x > topsite.x;
                          if (rightOfSite && he.side === "l") {
                            return 1;
                          }
                  Severity: Minor
                  Found in public/js/d3.v2.js - About 1 hr to fix

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

                      d3.layout.cluster = function() {
                        function cluster(d, i) {
                          var nodes = hierarchy.call(this, d, i), root = nodes[0], previousNode, x = 0, kx, ky;
                          d3_layout_treeVisitAfter(root, function(node) {
                            var children = node.children;
                    Severity: Minor
                    Found in public/js/d3.v2.js - About 1 hr to fix

                      Function cleanData has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          cleanData: function( elems ) {
                              var data, id,
                                  cache = jQuery.cache,
                                  special = jQuery.event.special,
                                  deleteExpando = jQuery.support.deleteExpando;
                      Severity: Minor
                      Found in public/js/jquery.js - About 1 hr to fix

                        Function token has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                              function token() {
                                if (reParse.lastIndex >= text.length) return EOF;
                                if (eol) {
                                  eol = false;
                                  return EOL;
                        Severity: Minor
                        Found in public/js/d3.v2.js - About 1 hr to fix

                          Function dirCheck has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
                              for ( var i = 0, l = checkSet.length; i < l; i++ ) {
                                  var elem = checkSet[i];
                          
                                  if ( elem ) {
                          Severity: Minor
                          Found in public/js/jquery.js - About 1 hr to fix

                            Function d3_scale_quantile has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              function d3_scale_quantile(domain, range) {
                                function rescale() {
                                  var k = 0, n = domain.length, q = range.length;
                                  thresholds = [];
                                  while (++k < q) thresholds[k - 1] = d3.quantile(domain, k / q);
                            Severity: Minor
                            Found in public/js/d3.v2.js - About 1 hr to fix

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

                                d3.svg.arc = function() {
                                  function arc() {
                                    var r0 = innerRadius.apply(this, arguments), r1 = outerRadius.apply(this, arguments), a0 = startAngle.apply(this, arguments) + d3_svg_arcOffset, a1 = endAngle.apply(this, arguments) + d3_svg_arcOffset, da = (a1 < a0 && (da = a0, a0 = a1, a1 = da), a1 - a0), df = da < Math.PI ? "0" : "1", c0 = Math.cos(a0), s0 = Math.sin(a0), c1 = Math.cos(a1), s1 = Math.sin(a1);
                                    return da >= d3_svg_arcMax ? r0 ? "M0," + r1 + "A" + r1 + "," + r1 + " 0 1,1 0," + -r1 + "A" + r1 + "," + r1 + " 0 1,1 0," + r1 + "M0," + r0 + "A" + r0 + "," + r0 + " 0 1,0 0," + -r0 + "A" + r0 + "," + r0 + " 0 1,0 0," + r0 + "Z" : "M0," + r1 + "A" + r1 + "," + r1 + " 0 1,1 0," + -r1 + "A" + r1 + "," + r1 + " 0 1,1 0," + r1 + "Z" : r0 ? "M" + r1 * c0 + "," + r1 * s0 + "A" + r1 + "," + r1 + " 0 " + df + ",1 " + r1 * c1 + "," + r1 * s1 + "L" + r0 * c1 + "," + r0 * s1 + "A" + r0 + "," + r0 + " 0 " + df + ",0 " + r0 * c0 + "," + r0 * s0 + "Z" : "M" + r1 * c0 + "," + r1 * s0 + "A" + r1 + "," + r1 + " 0 " + df + ",1 " + r1 * c1 + "," + r1 * s1 + "L0,0" + "Z";
                                  }
                              Severity: Minor
                              Found in public/js/d3.v2.js - About 1 hr to fix

                                Function clone has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    clone: function( elem, dataAndEvents, deepDataAndEvents ) {
                                        var srcElements,
                                            destElements,
                                            i,
                                            // IE<=8 does not properly clone detached, unknown element nodes
                                Severity: Minor
                                Found in public/js/jquery.js - About 1 hr to fix

                                  Function promise has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      promise: function( type, object ) {
                                          if ( typeof type !== "string" ) {
                                              object = type;
                                              type = undefined;
                                          }
                                  Severity: Minor
                                  Found in public/js/jquery.js - About 1 hr to fix

                                    Function style has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        style: function( elem, name, value, extra ) {
                                            // Don't set styles on text and comment nodes
                                            if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
                                                return;
                                            }
                                    Severity: Minor
                                    Found in public/js/jquery.js - About 1 hr to fix

                                      Function offset has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          jQuery.fn.offset = function( options ) {
                                              var elem = this[0], box;
                                      
                                              if ( options ) {
                                                  return this.each(function( i ) {
                                      Severity: Minor
                                      Found in public/js/jquery.js - About 1 hr to fix

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

                                            jQuery.fn[ type ] = function( size ) {
                                                // Get window width or height
                                                var elem = this[0];
                                                if ( !elem ) {
                                                    return size == null ? null : this;
                                        Severity: Minor
                                        Found in public/js/jquery.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language